version: '3.8' services: certbot: build: . ports: - "53:53/tcp" - "53:53/udp" environment: - EMAIL=youremail@example.com - DOMAINS=-d example.com -d *.example.com # Set to true for testing - STAGING=false - DRY_RUN=false volumes: - letsencrypt:/etc/letsencrypt - letsencrypt-lib:/var/lib/letsencrypt volumes: letsencrypt: letsencrypt-lib: