forked from ludeknovy/jtl-reporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (51 loc) · 1.35 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
version: '2.1'
services:
fe:
image: novyl/jtl-reporter-fe:v4.10.0
ports:
- "2020:80"
depends_on:
- db
- be
db:
container_name: jtl-reporter-db
build:
context: ./db/
dockerfile: Dockerfile
volumes:
- ./data/jtl_reporter_v4:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 10
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
be:
image: novyl/jtl-reporter-be:v4.10.2
ports:
- "5000:5000"
environment:
- DB_HOST=db
- JWT_TOKEN=27JU4qy73hchTMLoH8w9m # please change this token
- JWT_TOKEN_LOGIN=GdK6TrCvX7rJRZJVg4ijt # please change this token, the same must be used for listener service
migration:
image: novyl/jtl-reporter-be:v4.10.2
environment:
- DATABASE_URL=postgres://postgres@db/jtl_report
- OPT_OUT_ANALYTICS=true
command: npm run migrate up
depends_on:
db:
condition: service_healthy
listener:
image: novyl/jtl-reporter-listener-service:v2.1.0
ports:
- "6000:6000"
environment:
- DB_HOST=db
- JWT_TOKEN=GdK6TrCvX7rJRZJVg4ijt # paste the same token as in be service - JWT_TOKEN_LOGIN
scheduler:
image: novyl/jtl-reporter-scheduler:v0.0.5
environment:
- DB_HOST=db