Linux_ubuntu_scripts/nginx-certbot-docker-compos...

16 lines
388 B
YAML

version: '3'
services:
nginx:
image: nginx:1.27.2-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./data/nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot