Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (75 loc) · 2.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
79 lines (75 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3'
services:
migrations:
build: .
depends_on:
- postgres
- opensearch
environment:
POSTGRES_SSLMODE: disable #require
POSTGRES_USER: rpuser
POSTGRES_PORT: 5432
POSTGRES_PASSWORD: rppass
POSTGRES_SERVER: postgres
POSTGRES_DB: reportportal
OS_HOST: opensearch
OS_PORT: 9200
OS_PROTOCOL: http # If security plugin is enabled, change to https
OS_USER: # If security plugin is enabled use 'admin' as username
OS_PASSWORD: # If security plugin is enabled use 'admin' as password
postgres:
image: postgres:12-alpine
environment:
POSTGRES_USER: rpuser
POSTGRES_PASSWORD: rppass
POSTGRES_DB: reportportal
volumes:
- postgre-data:/var/lib/postgresql/data
restart: on-failure
# If you need to access the DB locally. Could be a security risk to expose DB.
ports:
- "5432:5432"
# logging:
# driver: 'json-file'
# options:
# max-size: "50M"
# max-file: "1"
opensearch:
image: opensearchproject/opensearch:latest
environment:
- discovery.type=single-node # Disable network discovery for single-node cluster
- bootstrap.memory_lock=true # Disable JVM heap memory swapping
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # Set min and max JVM heap sizes to at least 50% of system RAM
- "DISABLE_INSTALL_DEMO_CONFIG=true" # Prevents execution of bundled demo script which installs demo certificates and security configurations to OpenSearch
- "DISABLE_SECURITY_PLUGIN=true" # Disables Security plugin
volumes:
- opensearch-data:/usr/share/opensearch/data # Creates volume called opensearch and mounts it to the container
ports:
- 9200:9200 # REST API
- 9600:9600 # Performance Analyzer
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
# volumes:
# - ./data/elasticsearch:/usr/share/elasticsearch/data
# environment:
# - "ES_JAVA_OPTS=-Dlog4j2.formatMsgNoLookups=true"
# - "bootstrap.memory_lock=true"
# - "discovery.type=single-node"
# - "logger.level=INFO"
# - "xpack.security.enabled=true"
# - "ELASTIC_PASSWORD=elastic1q2w3e"
# ulimits:
# memlock:
# soft: -1
# hard: -1
# nofile:
# soft: 65536
# hard: 65536
# ports:
# - "9200:9200"
# healthcheck:
# test: [ "CMD", "curl","-s" ,"-f", "http://elastic:elastic1q2w3e@localhost:9200/_cat/health" ]
# restart: always
volumes:
postgre-data:
opensearch-data: