-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (64 loc) · 1.18 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
version: '3'
services:
db:
restart: always
image: postgres
env_file:
- ./env/postgresql.env
volumes:
- db-data:/var/lib/postgresql
depends_on:
- backup
backup:
restart: always
image: postgres
volumes:
- db-data:/var/lib/backup/data
command: "true"
nginx:
restart: always
build: ./nginx
image: mynginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/certs/:/www/ssl/:ro
- ./mysite/static/:/www/static/:ro
- /var/log/nginx
depends_on:
- webapps
webapps:
restart: always
build: ./mysite
image: mysite-django
expose:
- "8000"
env_file:
- ./env/webapps.env
volumes:
- ./mysite:/webapps
depends_on:
- db
- redis-server
command: /bin/bash run_webapps.sh
redis-server:
restart: always
image: redis
expose:
- "6379"
volumes:
- redis-data:/var/lib/redis
celery:
restart: always
build: ./mysite
image: mysite-django
env_file:
- ./env/webapps.env
depends_on:
- redis-server
- webapps
command: /bin/bash run_celery.sh
volumes:
db-data:
redis-data: