-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.deploy.yml
More file actions
54 lines (50 loc) · 1.17 KB
/
docker-compose.deploy.yml
File metadata and controls
54 lines (50 loc) · 1.17 KB
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
version: "3.9"
services:
app:
build:
context: .
restart: always
volumes:
- /static/lithops-life:/vol/static
- ./app/db.sqlite3:/app/db.sqlite3
environment:
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
- DJANGO_ALLOWED_HOSTS=${DOMAIN}
- DJANGO_DEBUG=1
- DOMAIN=${DOMAIN}
- EMAIL_FROM_SITE=${EMAIL_FROM_SITE}
- EMAIL_FROM_SITE_PASSWD=${EMAIL_FROM_SITE_PASSWD}
- EMAIL_FROM_SITE_TO=${EMAIL_FROM_SITE_TO}
- RECAPTCHA_SECRET_KEY=${RECAPTCHA_SECRET_KEY}
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
- /static/lithops-life:/vol/static
environment:
- DOMAIN=${DOMAIN}
certbot:
build:
context: ./docker/certbot
command: echo "Skipping..."
environment:
- EMAIL=${ACME_DEFAULT_EMAIL}
- DOMAIN=${DOMAIN}
volumes:
- certbot-web:/vol/www
- certbot-certs:/etc/letsencrypt/
depends_on:
- proxy
volumes:
certbot-web:
proxy-dhparams:
certbot-certs: