services: app: image: ${IMAGE} container_name: me-app networks: - proxy expose: - 80 environment: - VIRTUAL_HOST=${VIRTUAL_HOST} - VIRTUAL_PORT=${VIRTUAL_PORT} - LETSENCRYPT_HOST=${LETSENCRYPT_HOST} - LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL} restart: unless-stopped healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:80/"] interval: 30s timeout: 10s retries: 3 start_period: 10s networks: proxy: external: true