-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 920 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 920 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
services:
nginx:
image: ghcr.io/chibixar/portfolio-react:latest
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf:/etc/nginx/conf.d
- ./certbot/www:/var/www/certbot
- ./certbot/conf:/etc/letsencrypt
restart: unless-stopped
certbot:
image: certbot/certbot
user: root
volumes:
- ./certbot/www:/var/www/certbot
- ./certbot/conf:/etc/letsencrypt
entrypoint: >
/bin/sh -c "
trap exit TERM;
while :; do
certbot renew --webroot --webroot-path=/var/www/certbot --quiet;
sleep 12h & wait $${!};
done"
restart: unless-stopped
uptime-kuma:
image: louislam/uptime-kuma:1
volumes:
- uptime-kuma-data:/app/data
restart: unless-stopped
# not exposed directly — proxied through nginx
volumes:
uptime-kuma-data: