-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
56 lines (50 loc) · 1021 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
version: "3"
volumes:
dbdata:
static_files:
media:
services:
db:
image: postgres:alpine
environment:
POSTGRES_USER: villafleurie
POSTGRES_DB: villafleurie
POSTGRES_PASS: villafleurie
volumes:
- dbdata:/var/lib/postgresql/data
ports:
- 5432:5432
web: &web
build: .
command: bash -c "python manage.py migrate && gunicorn -w 4 villafleurie.wsgi -b 0.0.0.0:8000"
volumes:
- .:/villafleurie
- static_files:/static_files
- media:/villafleurie/media
ports:
- "8000:8000"
depends_on:
- db
- rabbitmq
- celery
env_file: prod.env
nginx:
build:
context: .
dockerfile: nginx/Dockerfile
ports:
- 80:80
volumes:
- static_files:/static_files
- media:/media
depends_on:
- web
celery:
<<: *web
command: celery -A villafleurie worker --loglevel=info
ports: []
depends_on:
- rabbitmq
- db
rabbitmq:
image: rabbitmq:alpine