-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 932 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 932 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
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
env_file: .env
volumes:
- sessions:/app/sessions
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/active.conf:/etc/nginx/conf.d/default.conf:ro
- certbot-www:/var/www/certbot:ro
- certbot-certs:/etc/letsencrypt:ro
depends_on:
- backend
- frontend
restart: unless-stopped
certbot:
image: certbot/certbot
volumes:
- certbot-www:/var/www/certbot
- certbot-certs:/etc/letsencrypt
# Run once to get cert, then renew periodically
entrypoint: /bin/sh -c "trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done"
volumes:
sessions:
certbot-www:
certbot-certs: