-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdocker-compose.yml
68 lines (59 loc) · 1.87 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
version: '2.1'
## !!! Warning if you are upgrading from v4 !!!
## Please make sure you back up your data before the upgrade.
## See https://jtlreporter.site/docs/guides/backup-and-restore-database
## The new version uses different DB image (timescale/timescaledb-ha) https://github.com/timescale/timescaledb-docker-ha
## The timescale/timescaledb-ha contains toolkit, which is not distributed as OSS, but as a TSL,
## Please see https://docs.timescale.com/about/latest/timescaledb-editions/#timescaledb-community-edition
services:
fe:
image: novyl/jtl-reporter-fe:v5.0.2
ports:
- "2020:80"
depends_on:
- db
- be
db:
container_name: jtl-reporter-db
build:
context: ./db/
dockerfile: Dockerfile
volumes:
- ./data/jtl_reporter_v5:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 10
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
be:
image: novyl/jtl-reporter-be:v5.0.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:v5.0.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.2
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.8
environment:
- DB_HOST=db