-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
95 lines (87 loc) · 2.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
95 lines (87 loc) · 2.02 KB
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
services:
backend: &backend
build:
context: ./backend
dockerfile: ./Dockerfile
ports:
- 5000:5000
volumes:
- ./backend/.env:/app/.env
- ./backend/src/appointment:/app/appointment
environment:
- CONTAINER_ROLE=api
- IS_LOCAL_DEV=yes
- RELEASE_VERSION=localdev
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
postgresql:
condition: service_healthy
celery-worker:
<<: *backend
ports: []
# Workaround for embedded beat (--beat) spinning at 100% CPU in Docker.
# Docker inherits a huge SC_OPEN_MAX (~1B) causing close_open_fds() to loop.
# https://github.com/celery/celery/issues/8306
ulimits:
nofile:
soft: 10000
hard: 10000
environment:
- CONTAINER_ROLE=worker
depends_on:
- backend
- redis
celery-flower:
<<: *backend
ports:
- 5556:5555
environment:
- CONTAINER_ROLE=flower
- FLOWER_UNAUTHENTICATED_API=true
depends_on:
- backend
- redis
frontend:
build: ./frontend
volumes:
- './frontend:/app'
- '/app/node_modules'
ports:
- 8090:8080
environment:
- WATCHPACK_POLLING=true
postgresql:
image: postgres:17
volumes:
- apmt_db:/var/lib/postgresql/data
ports:
- 5435:5432
environment:
- POSTGRES_DB=appointment
- POSTGRES_USER=tba
- POSTGRES_PASSWORD=abcd%efgh
- PGDATA=/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 5s
timeout: 5s
retries: 55
shm_size: 128mb
redis:
image: redis/redis-stack
volumes:
- cache:/data
ports:
- 6379:6379 # Redis exposed on port 6379
- 8070:8001 # Insights exposed on port 8070
mailpit:
image: axllent/mailpit
environment:
- MP_SMTP_AUTH_ALLOW_INSECURE=true
ports:
- 8026:8025 # Web UI
- 1026:1024 # SMTP
volumes:
apmt_db: {}
cache: {}