-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
61 lines (55 loc) · 1006 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
52
53
54
55
56
57
58
59
60
61
version: '3.9'
services:
app:
build:
context: .
restart: always
env_file:
- .env
volumes:
- ./:/app
- static-data:/vol/web
depends_on:
- db
db:
image: postgres:15.4-alpine3.18
restart: always
env_file:
- .env
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
proxy:
build:
context: ./configs/proxy
restart: always
env_file:
- .env
depends_on:
- app
ports:
- 80:80
- 443:443
volumes:
- static-data:/vol/static
- certbot-web:/vol/www
- certbot-certs:/etc/letsencrypt
- proxy-dhparams:/vol/proxy
certbot:
build:
context: ./configs/certbot
command: echo "Skipping..."
env_file:
- .env
volumes:
- certbot-web:/vol/www
- certbot-certs:/etc/letsencrypt
depends_on:
- proxy
volumes:
postgres-data:
static-data:
certbot-web:
certbot-certs:
proxy-dhparams: