-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-prod.yml
More file actions
38 lines (34 loc) · 889 Bytes
/
docker-compose-prod.yml
File metadata and controls
38 lines (34 loc) · 889 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
version: '3.7'
services:
db:
image: postgres:13-alpine
environment:
- POSTGRES_DB=app
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=supersecretpassword
volumes:
- ./database-data:/var/lib/postgresql/data
app:
build:
context: .
volumes:
- static_data:/vol/web
environment:
- SECRET_KEY=sample_secret_key
- ALLOWED_HOSTS=127.0.0.1,localhost,dev.ronwork.com,10.147.19.70
- DB_HOST=db
- DB_NAME=app
- DB_USER=postgres
- DB_PASS=supersecretpassword
proxy:
build:
context: ./proxy
volumes:
- static_data:/vol/static
ports:
- "8080:8080"
- "443:443"
depends_on:
- app
volumes:
static_data: