diff --git a/examples/bitwarden/docker-compose.yml b/examples/bitwarden/docker-compose.yml index 309729b..34be076 100644 --- a/examples/bitwarden/docker-compose.yml +++ b/examples/bitwarden/docker-compose.yml @@ -2,7 +2,7 @@ version: "3.8" services: bitwarden: - image: bitwarden/self-host:2023.10.1-beta + image: bitwarden/self-host:2024.8.0-beta container_name: bitwarden_unified restart: always depends_on: @@ -11,9 +11,25 @@ services: - settings.env ports: - "8888:8080" + expose: + - 8080 volumes: - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/bitwarden-unified/data:/etc/bitwarden - + #networks: + # - proxy + #labels: + # - traefik.enable=true + # - traefik.docker.network=proxy + # - traefik.http.routers.bitwarden.rule=Host(`bitwarden.example.com`) + # - traefik.http.services.bitwarden.loadbalancer.server.port=8080 + # # Optional part for file upload max sizes + # - 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 + # # Optional part for traefik middlewares + # - traefik.http.routers.bitwarden.middlewares=local-ipwhitelist@file + bitwarden-unified-db: image: postgres:alpine3.18 container_name: bitwarden_unified_db @@ -24,3 +40,9 @@ services: POSTGRES_DB: "bitwarden_vault" volumes: - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/bitwarden-unified/psql:/var/lib/postgresql/data + #networks: + # - proxy + +#networks: +# proxy: +# external: true