Change deployment to use docker-compose

This commit is contained in:
schmelczerandras 2020-07-10 18:56:59 +02:00
parent 3f3e654ea9
commit f3e91c888b
14 changed files with 168 additions and 235 deletions

View file

@ -0,0 +1,24 @@
version: '3'
services:
ingress:
image: nginx:alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
volumes:
- ./data/nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
frontend:
image: schmelczera/declared-frontend
restart: unless-stopped
certbot:
image: certbot/certbot
restart: unless-stopped
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot