Update docker-compose.yml

remove traefik labels and add network definitions
This commit is contained in:
LRVT 2023-02-26 03:46:10 +01:00 committed by GitHub
parent eee536fd98
commit 8d534bc0cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,10 +13,16 @@ services:
- 8.8.8.8 - 8.8.8.8
volumes: volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/uptimekuma:/app/data - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/uptimekuma:/app/data
labels: #networks:
- traefik.enable=true # - proxy
- traefik.http.routers.uptimekuma.rule=Host(`uptimekuma.example.com`) #labels:
- traefik.http.services.uptimekuma.loadbalancer.server.port=3001 # - traefik.enable=true
- traefik.docker.network=proxy # - traefik.http.routers.uptimekuma.rule=Host(`uptimekuma.example.com`)
# Part for local lan services only # - traefik.http.services.uptimekuma.loadbalancer.server.port=3001
#- traefik.http.routers.uptimekuma.middlewares=local-ipwhitelist@file # - traefik.docker.network=proxy
# # Part for local lan services only
# #- traefik.http.routers.uptimekuma.middlewares=local-ipwhitelist@file
#networks:
# proxy:
# external: true