-
Notifications
You must be signed in to change notification settings - Fork 66
/
docker-compose.yml
78 lines (72 loc) · 1.65 KB
/
docker-compose.yml
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
services:
rabbitmq:
image: rabbitmq:3.8.2-management
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: "rabbitmq"
RABBITMQ_DEFAULT_PASS: "rabbitmq"
postgres:
image: postgres:12-alpine
environment:
POSTGRES_USER: rpuser
POSTGRES_PASSWORD: rppass123
POSTGRES_DB: reportportal
volumes:
- reportportal-database:/var/lib/postgresql/data
restart: on-failure
ports:
- "5432:5432"
opensearch:
image: opensearchproject/opensearch:2.16.0
restart: always
volumes:
- opensearch:/usr/share/opensearch/data
environment:
- "bootstrap.memory_lock=true"
- "discovery.type=single-node"
- "logger.level=INFO"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
ports:
- "9200:9200"
api:
build: .
depends_on:
- postgres
- rabbitmq
- minio
environment:
- JAVA_OPTS=-Xmx1g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp
- DATASTORE_TYPE=minio
- DATASTORE_ENDPOINT=http://minio:9000
- DATASTORE_ACCESSKEY=minio
- DATASTORE_SECRETKEY=minio123
restart: always
ports:
- "8585:8585"
minio:
image: minio/minio:latest
ports:
- '9000:9000'
volumes:
- minio:/data
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server /data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
volumes:
reportportal-database:
opensearch:
minio: