forked from reportportal/reportportal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-v5.yml
201 lines (185 loc) · 5.7 KB
/
docker-compose-v5.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
## You can generate a custom docker compose file automatically on http://reportportal.io/download (Step 2)
## This is example of Docker Compose for ReportPortal
## Do not forget to configure data volumes for production usage
## Execute 'docker-compose -f docker-compose-v5.yml -p reportportal up -d --force-recreate' --build
## to start all containers in daemon mode
## Where:
## '-f docker-compose-local.yml' -- specifies this compose file
## '-p reportportal' -- specifies container's prefix (project name)
## '-d' -- enables daemon mode
## '--force-recreate' -- forces re-recreating of all containers
## '--build' -- build images before starting containers.
version: '2.4'
services:
gateway:
image: traefik:1.7.12
ports:
- "8080:8080" # HTTP exposed
- "8081:8081" # HTTP Administration exposed
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command:
- --docker
- --docker.watch
- --docker.constraints=tag==reportportal
- --defaultEntryPoints=http
- --entryPoints=Name:http Address::8080
- --logLevel=ERROR
- --web
- --web.address=:8081
- --web.metrics=true
- --web.metrics.prometheus=true
restart: always
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.3.0
restart: always
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/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"
healthcheck:
test: ["CMD", "curl","-s" ,"-f", "http://localhost:9200/_cat/health"]
analyzer:
image: reportportal/service-analyzer:5.0.0-RC-2
depends_on:
- rabbitmq
- elasticsearch
restart: always
migrations:
image: reportportal/migrations:5.0.0-RC-2
restart: on-failure
depends_on:
- postgres
# condition: service_healthy
environment:
POSTGRES_USER: rpuser
POSTGRES_PORT: 5432
POSTGRES_PASSWORD: rppass
POSTGRES_SERVER: postgres
POSTGRES_DB: reportportal
postgres:
image: postgres:12-alpine
environment:
POSTGRES_USER: rpuser
POSTGRES_PASSWORD: rppass
POSTGRES_DB: reportportal
volumes:
# For windows host
# - postgres:/var/lib/postgresql/data
# For unix host
- ./data/postgres:/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"
command:
-c checkpoint_completion_target=0.9
-c work_mem=96MB
-c wal_writer_delay=20ms
-c synchronous_commit=off
-c wal_buffers=32MB
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 120s
retries: 10
rabbitmq:
image: rabbitmq:3.7.16-management
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: "rabbitmq"
RABBITMQ_DEFAULT_PASS: "rabbitmq"
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
retries: 5
uat:
image: reportportal/service-authorization:5.0.0-RC-2
#ports:
# - "9999:9999"
environment:
- RP_BINARYSTORE_TYPE=minio
- RP_BINARYSTORE_MINIO_ENDPOINT=http://minio:9000
- RP_BINARYSTORE_MINIO_ACCESSKEY=minio
- RP_BINARYSTORE_MINIO_SECRETKEY=minio123
- RP_SESSION_LIVE=86400 #in seconds
restart: always
labels:
- "traefik.backend=uat"
- "traefik.frontend.rule=PathPrefixStrip:/uat"
- "traefik.enable=true"
- "traefik.port=9999"
- "traefik.tags=reportportal"
index:
image: reportportal/service-index:5.0.4
depends_on:
- gateway
restart: always
environment:
- LB_URL=http://gateway:8081
labels:
- "traefik.backend=index"
- "traefik.frontend.rule=PathPrefix:/"
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.tags=reportportal"
api:
image: reportportal/service-api:5.0.0-RC-2
volumes:
- ./data/storage:/data/storage
depends_on:
- postgres
- rabbitmq
- gateway
environment:
- RP_BINARYSTORE_TYPE=minio
- RP_BINARYSTORE_MINIO_ENDPOINT=http://minio:9000
- RP_BINARYSTORE_MINIO_ACCESSKEY=minio
- RP_BINARYSTORE_MINIO_SECRETKEY=minio123
- LOGGING_LEVEL_ORG_HIBERNATE_SQL=info
- JAVA_OPTS=-Xmx1g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -Dcom.sun.management.jmxremote.rmi.port=12349 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=10.6.128.241
restart: always
labels:
- "traefik.backend=api"
- "traefik.frontend.rule=PathPrefixStrip:/api"
- "traefik.enable=true"
- "traefik.port=8585"
- "traefik.tags=reportportal"
ui:
image: reportportal/service-ui:5.0.0-RC-3
environment:
- RP_SERVER_PORT=8080
restart: always
labels:
- "traefik.backend=ui"
- "traefik.frontend.rule=PathPrefixStrip:/ui/"
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.tags=reportportal"
minio:
image: 'bitnami/minio:latest'
ports:
- '9000:9000'
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
# Docker volume for Windows host
#volumes:
# postgres: