-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprod.yml
More file actions
39 lines (38 loc) · 885 Bytes
/
prod.yml
File metadata and controls
39 lines (38 loc) · 885 Bytes
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
version: '3'
volumes:
pgdata:
static_files:
services:
web:
build:
context: .
dockerfile: docker/prod/web/Dockerfile
environment:
- DJANGO_SETTINGS_MODULE=backend_app.settings.product
- PYTHONUNBUFFERED=1
volumes:
- .:/debitrum
- static_files:/static_files
ports:
- 8000:8000
command: gunicorn -w 4 backend_app.wsgi -b 0.0.0.0:8000
postgres:
image: postgres:10.3
environment:
POSTGRES_USER: debitrum
POSTGRES_DB: debitrum
POSTGRES_PASS: debitrum
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
nginx:
build:
context: .
dockerfile: docker/prod/nginx/Dockerfile
volumes:
- static_files:/static_files
ports:
- 80:80
#In the terminal execute the command:
#docker-compose -f prod.yml run web python manage.py collectstatic