Initial backup import
This commit is contained in:
41
root/docker/Webproxy/docker-compose.yml
Normal file
41
root/docker/Webproxy/docker-compose.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
# /root/docker/Webproxy/docker-compose.yml
|
||||
|
||||
services:
|
||||
webproxy:
|
||||
image: nginx:stable
|
||||
container_name: Webproxy
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
environment:
|
||||
- NGINX_ENTRYPOINT_DISABLE_IPV6=true
|
||||
volumes:
|
||||
- /root/docker/Webproxy/Data/nginx/service.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- /root/docker/Webproxy/Data/certbot/webroot:/var/www/certbot:ro
|
||||
- /root/docker/Webproxy/Data/certbot/conf:/etc/letsencrypt:ro
|
||||
- /root/docker/Webproxy/Data/logs:/var/log/nginx
|
||||
- /root/docker/Webproxy/Data/nginx/auth:/etc/nginx/auth:ro
|
||||
networks:
|
||||
- webproxy-net
|
||||
restart: unless-stopped
|
||||
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
container_name: Webproxy-certbot
|
||||
volumes:
|
||||
- /root/docker/Webproxy/Data/certbot/webroot:/var/www/certbot
|
||||
- /root/docker/Webproxy/Data/certbot/conf:/etc/letsencrypt
|
||||
networks:
|
||||
- webproxy-net
|
||||
restart: unless-stopped
|
||||
entrypoint: /bin/sh -c
|
||||
command: >
|
||||
"trap exit TERM;
|
||||
while :; do
|
||||
certbot renew --webroot -w /var/www/certbot --quiet;
|
||||
sleep 12h;
|
||||
done"
|
||||
|
||||
networks:
|
||||
webproxy-net:
|
||||
external: true
|
||||
Reference in New Issue
Block a user