Nginx and Certbot settings
Certbot is a very useful tool to setup auto renewal of certificates. Here is how I’m setting up certbot and nginx quick and easy. Initial Setup Here is the docker-compose.yaml file with nginx and certbot services: nginx: image: "nginx:alpine" container_name: app_nginx ports: - 80:80 - 443:443 volumes: - ./platform/config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro - ./platform/config/certbot/www:/var/www/certbot:ro - ./platform/config/certbot/conf:/etc/letsencrypt:ro restart: always certbot: image: certbot/certbot container_name: app_certbot volumes: - ./platform/config/certbot/www:/var/www/certbot:rw - ./platform/config/certbot/conf:/etc/letsencrypt:rw Every file that’s generated by certbot will be stored in ./platform/config/certbot ...