-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (70 loc) · 1.37 KB
/
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
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
version: '3.8'
services:
postgres:
image: postgres:latest
env_file:
- docker.env
networks:
- site_network
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
command: -p 5432
celery:
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
command: celery -A resume worker -B -E -l INFO
env_file:
- ./docker.env
volumes:
- celery-data:/srv/public
depends_on:
- app
- redis
networks:
- site_network
redis:
image: redis:latest
restart: unless-stopped
networks:
- site_network
app:
container_name: app_resume
hostname: app_resume
build:
context: .
dockerfile: Dockerfile
depends_on:
- postgres
- redis
networks:
- site_network
env_file:
- docker.env
# link local changes to container for continuous development
volumes:
- .:/srv/app
ports:
- "0.0.0.0:8000:8000"
command: gunicorn resume.wsgi:application --bind 0.0.0.0:8000
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
# until stopped manually nginx will work
restart: unless-stopped
networks:
- site_network
depends_on:
- app
ports:
- "80:80"
networks:
site_network:
volumes:
postgres_data:
static_data:
celery-data: