# CREDIT: https://github.com/shren207/nextjs-docker-compose services: share: build: . # ports: # - 8080:8080 restart: always volumes: - $PWD/app:/app working_dir: /app # command: sleep infinity command: bash entry.sh labels: - "traefik.enable=true" - "traefik.http.routers.barbarbar-http.rule=Host(`barbarbar.iamon99.com`)" - "traefik.http.routers.barbarbar-http.entrypoints=web" - "traefik.http.routers.barbarbar-http.middlewares=barbarbar-https" - "traefik.http.middlewares.barbarbar-https.redirectscheme.scheme=https" - "traefik.http.routers.barbarbar.rule=Host(`barbarbar.iamon99.com`)" - "traefik.http.routers.barbarbar.entrypoints=websecure" - "traefik.http.routers.barbarbar.tls.certresolver=myresolver" - "traefik.http.services.barbarbar.loadbalancer.server.port=8080" networks: default: external: name: traefik-proxy-network