mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2025-01-18 15:27:08 +00:00
Update docker-compose.yml
remove optional traefik labels; add port definitions
This commit is contained in:
parent
8e479a2052
commit
dc7effba83
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user