-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 994 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (40 loc) · 994 Bytes
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
services:
# The "Fridge" - Redis for Celery and Caching
redis:
image: redis:7-alpine
container_name: digital_wallet_redis
ports:
- "6379:6379"
restart: always
# The "Head Chef" - Django Web Application
web:
build: .
container_name: digital_wallet_web
command: gunicorn --bind 0.0.0.0:8000 core.wsgi:application
volumes:
- .:/app
ports:
- "8000:8000"
env_file:
- .env
environment:
- DJANGO_SETTINGS_MODULE=core.settings.prod
- CELERY_BROKER_URL=redis://redis:6379/0
depends_on:
- redis
restart: always
# The "Waiter" - Celery Worker for Background Tasks
celery:
build: .
container_name: digital_wallet_celery
command: celery -A core worker --loglevel=info
volumes:
- .:/app
env_file:
- .env
environment:
- DJANGO_SETTINGS_MODULE=core.settings.prod
- CELERY_BROKER_URL=redis://redis:6379/0
depends_on:
- redis
restart: always