services: nginx: build: context: . dockerfile: Dockerfile image: git.ksan.dev/ksan/testapp:latest container_name: testapp_nginx networks: - frontend labels: - traefik.enable=true - traefik.http.routers.testapp-https.rule=Host(`${DOMAIN}`) - traefik.http.routers.testapp-https.entrypoints=websecure - traefik.http.routers.testapp-https.tls=true - traefik.http.routers.testapp-https.tls.certresolver=cloudflare - traefik.http.services.testapp.loadbalancer.server.port=80 restart: unless-stopped networks: frontend: external: true