-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
96 lines (89 loc) · 2.14 KB
/
docker-compose.yaml
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
services:
web:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- TEMPORAL_HOST=temporal
- TEMPORAL_PORT=7233
- DATABASE_URL=postgresql://postgres:postgres@db:5432/health_analytics
depends_on:
- db
- temporal
- mailpit
volumes:
- .:/app
worker:
build:
context: .
dockerfile: Dockerfile.worker
environment:
- TEMPORAL_HOST=temporal
- TEMPORAL_PORT=7233
- DATABASE_URL=postgresql://postgres:postgres@db:5432/health_analytics
depends_on:
- temporal
- db
volumes:
- .:/app
temporal:
image: temporalio/auto-setup:1.22.3
ports:
- "7233:7233"
- "8233:8233"
environment:
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml
- DB=postgresql
- DB_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=temporal-postgresql
- DJANGO_SETTINGS_MODULE=healthcheck_analytic.settings
depends_on:
- temporal-postgresql
volumes:
- ./temporal-config/dynamicconfig:/etc/temporal/config/dynamicconfig/
temporal-postgresql:
image: postgres:13
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=temporal
volumes:
- temporal-postgresql:/var/lib/postgresql/data
temporal-web:
image: temporalio/web:1.15.0
environment:
- TEMPORAL_GRPC_ENDPOINT=temporal:7233
- TEMPORAL_PERMIT_WRITE_API=true
ports:
- "8088:8088"
depends_on:
- temporal
db:
image: postgres:13
environment:
- POSTGRES_DB=health_analytics
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data:/var/lib/postgresql/data
mailpit:
image: axllent/mailpit
restart: unless-stopped
volumes:
- ./.mailpit-data:/data
ports:
- "1025:1025"
- "8025:8025"
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
networks:
- default
volumes:
temporal-postgresql:
postgres_data: