-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 924 Bytes
/
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
version: "3.9"
services:
api:
build: .
image: juancamiloceron/django
container_name: django_api
environment:
- APP_MODE=api
env_file:
- .env
volumes:
- .:/code
- ./static:/static
ports:
- "8000:8000"
cdn:
image: nginx:latest
container_name: django_cdn
ports:
- "8080:8000"
volumes:
- ./config/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./static:/static
depends_on:
- api
worker:
image: juancamiloceron/django
container_name: django_celery_worker
environment:
- APP_MODE=worker
env_file:
- .env
volumes:
- .:/code
depends_on:
- api
scheduler:
image: juancamiloceron/django
container_name: django_celery_scheduler
environment:
- APP_MODE=scheduler
env_file:
- .env
volumes:
- .:/code
depends_on:
- api