-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
84 lines (79 loc) · 1.94 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
services:
server:
image: ghcr.io/koliver94/bss-request-manager:main
restart: unless-stopped
command: gunicorn --bind=0.0.0.0:8000 --workers=5 --threads=2 core.wsgi
volumes:
- credentials:/app/backend/credentials
- logs:/app/backend/logs
ports:
- '127.0.0.1:8000:8000'
extra_hosts:
- 'host.docker.internal:host-gateway'
env_file:
- ./backend/.env
depends_on:
- postgres
- redis
worker:
image: ghcr.io/koliver94/bss-request-manager:main
restart: unless-stopped
command: celery -A core worker
env_file:
- ./backend/.env
environment:
- DJANGO_CONTAINER=false
volumes:
- credentials:/app/backend/credentials/:ro
extra_hosts:
- 'host.docker.internal:host-gateway'
depends_on:
- server
- postgres
- redis
beat:
image: ghcr.io/koliver94/bss-request-manager:main
restart: unless-stopped
command: celery -A core beat
env_file:
- ./backend/.env
environment:
- DJANGO_CONTAINER=false
depends_on:
- server
- postgres
- redis
postgres:
image: postgres:17-alpine
restart: unless-stopped
healthcheck:
test: ['CMD-SHELL', 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}']
start_period: 20s
interval: 30s
retries: 5
timeout: 5s
volumes:
- postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=request_manager_db
- POSTGRES_USER=request_manager
- POSTGRES_PASSWORD=change_me
- POSTGRES_INITDB_ARGS=--locale-provider=icu --icu-locale=hu-HU
- LC_COLLATE=hu_HU.utf8
- LC_CTYPE=hu_HU.utf8
redis:
image: redis:7-alpine
restart: unless-stopped
healthcheck:
test: ['CMD-SHELL', 'redis-cli ping | grep PONG']
start_period: 20s
interval: 30s
retries: 5
timeout: 5s
volumes:
- redis:/data
volumes:
credentials:
logs:
postgres:
redis: