-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
51 lines (46 loc) · 985 Bytes
/
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
51
version: "3"
services:
web_app:
container_name: web_app_prod
build:
context: .
dockerfile: docker/prod/web_app/Dockerfile
volumes:
- ./app:/app
- staticfiles:/home/app/staticfiles
expose:
- 8000
command: gunicorn -w 3 blackroq.wsgi -b 0.0.0.0:8000
env_file:
- ./app/.env
depends_on:
- db
db:
container_name: new_way_db_prod
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- ./app/.env
# environment:
# - SQL_DATABASE=newway
# - SQL_USER=newway
# - SQL_PASSWORD="newway"
# - SQL_HOST=db
# - SQL_PORT=5432
ports:
- 5435:5432
nginx:
container_name: new_way_nginx
build:
context: .
dockerfile: docker/prod/nginx/Dockerfile
ports:
- 80:80
volumes:
- staticfiles:/home/app/staticfiles
depends_on:
- web_app
volumes:
postgres_data:
staticfiles: