-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.deploy.yml
More file actions
42 lines (38 loc) · 872 Bytes
/
Copy pathdocker-compose.deploy.yml
File metadata and controls
42 lines (38 loc) · 872 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
version: "3.9"
services:
app:
build:
context: .
restart: always
environment:
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
- DJANG0_ALLOWED_HOSTS=${DOMAIN}
proxy:
build:
context: ./docker/proxy
restart: always
depends_on:
- app
ports:
- "80:80"
- "443:443"
volumes:
- certbot-web:/vol/www
- proxy-dhparams:/vol/proxy
- certbot-certs:/etc/letsencrypt
environment:
- DOMAIN=${DOMAIN}
certbot:
build:
context: ./docker/certbot
command: echo "skipping certbot ..."
environment:
- EMAIL=${EMAIL}
- DOMAIN=${DOMAIN}
volumes:
- certbot-web:/vol/www
- certbot-certs:/etc/letsencrypt
volumes:
certbot-web:
proxy-dhparams:
certbot-certs: