version: '3.5' services: app: build: './nginx' image: 'nginx-certbot:stable-alpine' env_file: - 'nginx.env.example' networks: - 'nginx' ports: - '80:80' - '443:443' volumes: - 'certs:/etc/letsencrypt' - './config:/etc/nginx/conf.d' networks: nginx: external: true volumes: certs: