-
Notifications
You must be signed in to change notification settings - Fork 0
/
prod.yml
24 lines (23 loc) · 836 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
version: "3"
services:
db:
volumes:
- ./postgres/blogdata:/var/lib/postgresql/data/blog
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${PG_PASS}
- PGDATA=${PGDATA}
- POSTGRES_DB=${POSTGRES_DB}
blogapi:
environment:
- FLASK_CONFIG=unix
- SECRET_KEY=${SECRET_KEY}
- DATABASE_URL=postgres://${POSTGRES_USER}:${PG_PASS}@db:5432/${POSTGRES_DB}
blognginx:
ports:
- "80:80"
- "443:443"
volumes:
- /etc/letsencrypt/live/www.bradleyzhou.com/cert.pem:/etc/ssl/cert.pem:ro
- /etc/letsencrypt/live/www.bradleyzhou.com/privkey.pem:/etc/ssl/privkey.pem:ro
- /usr/share/nginx/html/.well-known:/var/www/blog/.well-known:ro