-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·75 lines (61 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
executable file
·75 lines (61 loc) · 1.16 KB
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
version: '2'
services:
web:
restart: always
build: ./web
expose:
- "8000"
links:
- postgres:postgres
# - rabbitmq:rabbit
- redis:redis
volumes:
- ./web:/usr/src/app
env_file: .env
command: /usr/local/bin/gunicorn app.wsgi:application -w 2 -b :8000 --reload
nginx:
restart: always
build: ./nginx/
ports:
- "${NGINX_PORT}:80"
volumes:
- /www/static
env_file: .env
volumes_from:
- web
links:
- web:web
postgres:
restart: always
image: postgres:latest
hostname: postgres
volumes_from:
- data
ports:
- "5432:5432"
data:
restart: always
image: postgres:latest
volumes:
- /var/lib/postgresql
command: echo 'true'
redis:
image: redis:2.8.19
environment:
- USER_TOKEN_DB=1
# rabbitmq:
# image: rabbitmq:3
# env_file: .env
# ports:
# - 5672:5672
worker:
restart: always
build: ./web
command: sh /usr/src/app/run_celery_worker.sh
volumes:
- ./web:/usr/src/app
env_file: .env
links:
- postgres:postgres
# - rabbitmq:rabbit
- redis:redis