version: '3' services: nginx: image: nginx:1.21-alpine ports: - "80:80" - "443:443" volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf - ./nginx/templates:/etc/nginx/templates - ./nginx/includes:/etc/nginx/includes - ../html:/var/www - ../data/certbot/www:/var/www/certbot - ../data/certbot/conf:/etc/letsencrypt 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