2023-11-06 17:14:47 +00:00
|
|
|
version: "3.8"
|
2023-02-15 21:45:31 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
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
|
2023-11-06 17:14:47 +00:00
|
|
|
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:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${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:
|
2023-11-07 15:06:23 +00:00
|
|
|
image: postgres:alpine3.18
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: bitwarden_unified_db
|
|
|
|
restart: always
|
2023-11-06 17:14:47 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "bitwarden"
|
2024-08-23 10:53:25 +00:00
|
|
|
POSTGRES_PASSWORD: "super_strong_password"
|
2023-11-06 17:14:47 +00:00
|
|
|
POSTGRES_DB: "bitwarden_vault"
|
2023-02-15 21:45:31 +00:00
|
|
|
volumes:
|
2023-11-06 17:14:47 +00:00
|
|
|
- ${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
|