-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
52 lines (48 loc) · 1.06 KB
/
docker-compose.prod.yml
File metadata and controls
52 lines (48 loc) · 1.06 KB
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
version: '3'
services:
db:
image: library/postgres:12-alpine
container_name: db01
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
restart: unless-stopped
volumes:
- ~/variant-alert/postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- hutch
web:
build: .
container_name: dj01
command: >
bash -c "cd src && python manage.py collectstatic --no-input && python manage.py makemigrations && python manage.py migrate && gunicorn variant_alert.wsgi -b 0.0.0.0:8000 --workers 3"
volumes:
- .:/code
expose:
- "8000"
networks:
- hutch
depends_on:
- db
nginx:
image: nginx:latest
container_name: ng01
ports:
- "80:80"
- "443:443"
volumes:
- ./config/nginx/prod:/etc/nginx/conf.d
- ./config/ssl:/etc/ssl/certs
- ./src/static:/static
depends_on:
- web
networks:
- hutch
networks:
hutch:
ipam:
config:
- subnet: 172.27.0.0/16