-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.prod.yml
executable file
·50 lines (48 loc) · 1.03 KB
/
docker-compose.prod.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'
services:
web:
container_name: web
build:
context: ./services/web
dockerfile: Dockerfile.prod
command: gunicorn --bind 0.0.0.0:5000 manage:app
volumes:
- static_volume:/home/app/web/project/static
- media_volume:/home/app/web/project/media
expose:
- 5000
env_file:
- ./.env.prod
depends_on:
- db
- broker
broker:
container_name: broker
image: rabbitmq:3.7.14-management
db:
container_name: db
image: postgres:12-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.prod.db
docs:
container_name: docs
image: swaggerapi/swagger-ui:3.28.0
build: ./services/swagger
ports:
- 8000:8080
nginx:
container_name: nginx
build: ./services/nginx
volumes:
- static_volume:/home/app/web/project/static
- media_volume:/home/app/web/project/media
ports:
- 1337:80
depends_on:
- web
volumes:
postgres_data:
static_volume:
media_volume: