-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathprod.yml
37 lines (37 loc) · 795 Bytes
/
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
version: '3'
volumes:
pgdata:
static_files:
services:
python:
# image: python:3.4
build:
context: .
dockerfile: docker/prod/python/Dockerfile
environment:
- DJANGO_SETTINGS_MODULE=tickets.settings.prod
- PYTHONUNBUFFERED=1
volumes:
- static_files:/static_files
ports:
- 8000:8000
command: gunicorn -w 4 tickets.wsgi -b 0.0.0.0:8000
postgres:
image: postgres:10.3
environment:
POSTGRES_USER: tickets
POSTGRES_DB: tickets
POSTGRES_PASS: tickets
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
nginx:
# image: nginx
build:
context: .
dockerfile: docker/prod/nginx/Dockerfile
volumes:
- static_files:/static_files
ports:
- 80:80