-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yaml
More file actions
50 lines (47 loc) · 1.23 KB
/
Copy pathdocker-compose.prod.yaml
File metadata and controls
50 lines (47 loc) · 1.23 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
services:
frontend:
build: .
image: deadmilk:latest
container_name: deadmilk
init: true
restart: always
volumes:
- ./db.sqlite3:/app/db.sqlite3
- static-data:/vol/static
- media-data:/vol/media
environment:
DJANGO_CSRF_TRUSTED_ORIGINS: 'http://localhost:5000'
frontend-proxy:
image: nginx:latest
container_name: deadginx
ports:
- "443:443"
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- static-data:/vol/static:ro
- media-data:/vol/media
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
depends_on:
frontend:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 47h
timeout: 10s
retries: 3
start_period: 40s
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
command: certonly --webroot -w /var/www/certbot --keep-until-expiring --email debboutr@gmail.com -d deadmilkfarms.com --agree-tos
depends_on:
frontend-proxy:
condition: service_healthy
volumes:
media-data:
static-data: