version: '3' services: nginx: image: nginx:1.21-alpine restart: always ports: - "80:80" - "443:443" volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro - ./nginx/templates:/etc/nginx/templates:ro - ./nginx/includes:/etc/nginx/includes:ro - ../html:/var/www/html:ro - ../data/certbot/www:/var/www/certbot:ro - ../data/certbot/conf:/etc/letsencrypt:ro - /home:/home:ro env_file: - ../env.production - env.production extra_hosts: - "host.docker.internal:host-gateway" certbot: image: certbot/certbot volumes: - ../data/certbot/conf:/etc/letsencrypt - ../data/certbot/www:/var/www/certbot