-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (52 loc) · 999 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
52
53
54
55
56
57
58
version: '2'
services:
postgres:
build: ./compose/postgres
volumes:
- /data/SocialNetX/postgres:/var/lib/postgresql/data
- /data/SocialNetX/postgres-backups:/backups
env_file: .env
django:
build:
context: .
user: django
depends_on:
- postgres
- redis
command: /gunicorn.sh
env_file: .env
depends_on:
- postgres
- redis
nginx:
build: ./compose/nginx
depends_on:
- django
ports:
- "0.0.0.0:80:80"
redis:
image: redis:3.0
celeryworker:
build:
context: .
user: django
env_file: .env
depends_on:
- postgres
- redis
command: celery -A SocialNetX.taskapp worker -l INFO
depends_on:
- postgres
- redis
celerybeat:
build:
context: .
user: django
env_file: .env
depends_on:
- postgres
- redis
command: celery -A SocialNetX.taskapp beat -l INFO
depends_on:
- postgres
- redis