-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (58 loc) · 1.15 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
version: "3.0"
services:
db:
image: postgres
env_file:
- .env
environment:
- PGDATA=/var/lib/postgresql/pgdata/
volumes:
- pgdata:/var/lib/postgresql/pgdata/
ports:
- 5432:5432
web:
build: .
image: ithillel-web
volumes:
- .:/src/
- static:/static
- media:/media
depends_on:
- db
- rabbitmq
env_file:
- .env
environment:
DJANGO_SETTINGS_MODULE: 'settings.dev'
PY_AUTORELOAD: 1
command: /bin/bash -c 'pip install -r requirements.txt && invoke run'
rabbitmq:
image: rabbitmq
celery_worker:
build: .
image: ithillel-web
volumes_from:
- web
depends_on:
- db
- rabbitmq
env_file:
- .env
environment:
DJANGO_SETTINGS_MODULE: 'settings.dev'
command: /bin/bash -c 'pip install -r requirements.txt && celery -A celery_app worker'
nginx:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- static:/static:ro
- media:/media:ro
links:
- web
ports:
- 80:80
- 443:443
volumes:
pgdata: { }
static: { }
media: { }