-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
48 lines (44 loc) · 944 Bytes
/
docker-compose.prod.yml
File metadata and controls
48 lines (44 loc) · 944 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
40
41
42
43
44
45
46
47
48
services:
web:
build: .
env_file:
- ./.env.prod
depends_on:
- db
volumes:
- static_volume:/app/staticfiles
secrets:
- email_host_user
- email_host_password
db:
image: postgres:14
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
secrets:
- postgres_password
caddy:
image: caddy:2
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- static_volume:/app/staticfiles
ports:
- "80:80"
- "443:443"
depends_on:
- web
volumes:
postgres_data:
caddy_data:
static_volume:
secrets:
postgres_password:
file: ./postgres_password.txt
email_host_user:
file: ./email_host_user.txt
email_host_password:
file: ./email_host_password.txt