Files
fdn2/cicd/nginx/docker-compose.yml
T
2026-07-12 23:00:46 +02:00

35 lines
651 B
YAML

version: "3"
services:
nginx:
image: nginx:1.16
ports:
- "80:80"
- "443:443"
networks:
- nginx-network
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/ssl:ro
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
logging:
driver: "json-file"
options:
max-file: 4
max-size: 100m
compress: "true"
certbot:
image: certbot/certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
networks:
nginx-network:
external: true
name:
nginx-network