Compose-Examples/examples/bitwarden/docker-compose.yml

49 lines
1.6 KiB
YAML
Raw Normal View History

2023-02-15 21:45:31 +00:00
services:
2023-02-15 21:45:31 +00:00
bitwarden:
2024-08-23 10:39:46 +00:00
image: bitwarden/self-host:2024.8.0-beta
2023-02-15 21:45:31 +00:00
container_name: bitwarden_unified
restart: always
2023-02-15 21:45:31 +00:00
depends_on:
2024-08-23 10:53:25 +00:00
- db
2023-02-15 21:45:31 +00:00
env_file:
- settings.env
ports:
2023-02-19 18:18:04 +00:00
- "8888:8080"
2024-08-23 10:39:46 +00:00
expose:
- 8080
2023-02-15 21:45:31 +00:00
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/bitwarden-unified/data:/etc/bitwarden
2024-08-23 10:53:25 +00:00
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/bitwarden-unified/data/logs:/var/log/bitwarden
2024-08-23 10:39:46 +00:00
#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
2024-08-23 10:53:25 +00:00
db:
image: postgres:alpine3.18
2023-02-15 21:45:31 +00:00
container_name: bitwarden_unified_db
restart: always
environment:
POSTGRES_USER: "bitwarden"
2024-08-23 10:53:25 +00:00
POSTGRES_PASSWORD: "super_strong_password"
POSTGRES_DB: "bitwarden_vault"
2023-02-15 21:45:31 +00:00
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/bitwarden-unified/psql:/var/lib/postgresql/data
2024-08-23 10:39:46 +00:00
#networks:
# - proxy
#networks:
# proxy:
# external: true