-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (48 loc) · 1.2 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
version: '3.7'
services:
web:
build:
context: ./app
dockerfile: Dockerfile
command: gunicorn spf.wsgi:application --bind 0.0.0.0:8000
volumes:
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/mediafiles
expose:
- 8000
env_file:
- ./.env.prod
depends_on:
- broker
- worker
external_links:
- scl_postgres_1
- scl_mongo_1
worker:
build:
context: ./app
dockerfile: Dockerfile
command: celery -A spf worker -l INFO
env_file:
- ./.env.prod
depends_on:
- broker
external_links:
- scl_postgres_1
broker:
image: rabbitmq:3-alpine
ports:
- 5672:5672
nginx:
build:
context: ./nginx
volumes:
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/mediafiles
ports:
- 1337:80
depends_on:
- web
volumes:
static_volume:
media_volume: