-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 846 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (31 loc) · 846 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
# Vector//Drift - compose with Certbot companion for Let's Encrypt HTTPS.
# Expects DNS for vector-drift.com and www.vector-drift.com to resolve to this host.
services:
vector-drift:
build: .
image: vector-drift:latest
container_name: vector-drift
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./letsencrypt:/etc/letsencrypt
- ./certbot-www:/var/www/certbot
networks: [web]
certbot:
image: certbot/certbot:latest
container_name: vd-certbot
volumes:
- ./letsencrypt:/etc/letsencrypt
- ./certbot-www:/var/www/certbot
entrypoint: >
/bin/sh -c "trap exit TERM;
while :;
do certbot renew --webroot -w /var/www/certbot --quiet;
sleep 12h & wait $${!};
done"
networks: [web]
networks:
web:
driver: bridge