Update docker-compose.yml

remove optional traefik labels; add port definitions
This commit is contained in:
LRVT 2023-09-25 13:35:41 +02:00 committed by GitHub
parent 8e479a2052
commit dc7effba83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,22 +21,25 @@ services:
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/owncloud-ocis/config:/etc/ocis
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/owncloud-ocis/data:/var/lib/ocis
ports:
- 9200
expose:
- 9200
labels:
- traefik.enable=true
- traefik.http.routers.ocis.rule=Host(`cloud.example.com`) # adjust to your domain
- traefik.http.services.ocis.loadbalancer.server.port=9200
- traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000
- traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000
- traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000
- traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000
- traefik.docker.network=dev
# Part for optional traefik middlewares
- traefik.http.routers.ocis.middlewares=local-ipwhitelist@file
networks:
- dev
#labels:
# - traefik.enable=true
# - traefik.http.routers.ocis.rule=Host(`cloud.example.com`) # adjust to your domain
# - traefik.http.services.ocis.loadbalancer.server.port=9200
# - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000
# - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000
# - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000
# - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000
# - traefik.docker.network=dev
# # disallow listing version details via /status.php endpoint
# - traefik.http.routers.ocis-version-disclosure.rule=Host(`cloud.example.com`) && Path(`/status.php`)
# - traefik.http.routers.ocis-version-disclosure.middlewares=local-ipwhitelist@file
#networks:
# - dev
networks:
dev:
external: true
#networks:
# dev:
# external: true