services: bunkerweb: image: bunkerity/bunkerweb:1.6.0-beta container_name: bunkerweb ports: - "80:8080" - "443:8443" environment: API_WHITELIST_IP: "127.0.0.0/8 10.20.30.0/24" restart: "unless-stopped" networks: - bw-universe - bw-services bw-scheduler: image: bunkerity/bunkerweb-scheduler:1.6.0-beta container_name: bw-scheduler depends_on: - bunkerweb volumes: - bw-data:/data - certs:/certs environment: BUNKERWEB_INSTANCES: "bunkerweb" SERVER_NAME: "app1.example.com app2.example.com app3.example.com" # replace with your domains MULTISITE: "yes" API_WHITELIST_IP: "127.0.0.0/8 10.20.30.0/24" SERVE_FILES: "no" DISABLE_DEFAULT_SERVER: "yes" USE_CLIENT_CACHE: "yes" USE_GZIP: "yes" USE_REVERSE_PROXY: "yes" USE_CUSTOM_SSL: "yes" CUSTOM_SSL_CERT: "/certs/live/example.com/fullchain.pem" CUSTOM_SSL_KEY: "/certs/live/example.com/privkey.pem" app1.example.com_REVERSE_PROXY_URL: "/" app1.example.com_REVERSE_PROXY_HOST: "http://app1:8080" app2.example.com_REVERSE_PROXY_URL: "/" app2.example.com_REVERSE_PROXY_HOST: "http://app2:8080" app3.example.com_REVERSE_PROXY_URL: "/" app3.example.com_REVERSE_PROXY_HOST: "http://app3:8080" restart: "unless-stopped" networks: - bw-universe mycertbot: image: certbot/dns-google:v2.11.0 environment: DOMAINS: "*.example.com,example.com" EMAIL: "contact@example.com" volumes: - certs:/etc/letsencrypt - ./google.json:/opt/google.json - ./entrypoint.sh:/opt/entrypoint.sh entrypoint: /bin/sh /opt/entrypoint.sh app1: image: nginxdemos/nginx-hello networks: - bw-services app2: image: nginxdemos/nginx-hello networks: - bw-services app3: image: nginxdemos/nginx-hello networks: - bw-services volumes: bw-data: certs: networks: bw-universe: name: bw-universe ipam: driver: default config: - subnet: 10.20.30.0/24 bw-services: name: bw-services