2022-12-11 19:37:01 +01:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
# https://hub.docker.com/r/vaultwarden/server
|
2024-01-03 17:03:24 +01:00
|
|
|
# https://github.com/dani-garcia/vaultwarden/pkgs/container/vaultwarden
|
2022-12-11 19:37:01 +01:00
|
|
|
# https://github.com/dani-garcia/vaultwarden
|
|
|
|
|
2023-09-13 22:33:47 +02:00
|
|
|
networks:
|
|
|
|
vaultwarden:
|
|
|
|
|
2022-12-11 19:37:01 +01:00
|
|
|
services:
|
|
|
|
vaultwarden:
|
2024-08-16 22:58:23 +02:00
|
|
|
image: ghcr.io/dani-garcia/vaultwarden:1.32.0-alpine
|
2022-12-11 19:37:01 +01:00
|
|
|
container_name: vaultwarden
|
|
|
|
restart: "${RESTART:-no}"
|
|
|
|
hostname: vaultwarden
|
|
|
|
domainname: ${BASE_DOMAIN}
|
|
|
|
environment:
|
|
|
|
- DOMAIN=https://passwords.${BASE_DOMAIN}
|
2023-09-21 13:47:22 +02:00
|
|
|
- TZ=${TIMEZONE}
|
2023-09-19 23:32:46 +02:00
|
|
|
|
|
|
|
- DATABASE_URL=postgres://vaultwarden:${VAULTWARDEN_PG_PWD:-vaultwarden}@pg-vaultwarden:5432/vaultwarden
|
2023-09-13 22:33:47 +02:00
|
|
|
|
2022-12-11 19:37:01 +01:00
|
|
|
- SMTP_HOST=mail
|
|
|
|
- SMTP_FROM=vaultwarden@${BASE_DOMAIN}
|
|
|
|
- SMTP_PORT=25
|
|
|
|
- SMTP_SECURITY=off
|
2023-09-13 22:33:47 +02:00
|
|
|
|
2022-12-11 19:37:01 +01:00
|
|
|
- ADMIN_TOKEN=${VAULTWARDEN_ADMIN_TOKEN}
|
2023-09-13 22:33:47 +02:00
|
|
|
- SIGNUPS_ALLOWED=false
|
|
|
|
- INVITATIONS_ALLOWED=false
|
|
|
|
- SHOW_PASSWORD_HINT=false
|
2023-09-19 23:32:46 +02:00
|
|
|
- LOG_FILE=/data/logs/vaultwarden.log
|
2022-12-11 19:37:01 +01:00
|
|
|
volumes:
|
2023-09-13 22:33:47 +02:00
|
|
|
- ${BASE_DIR:-/srv}/vaultwarden/data:/data
|
|
|
|
depends_on:
|
|
|
|
- pg-vaultwarden
|
2022-12-11 19:37:01 +01:00
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- mail
|
2023-09-13 22:33:47 +02:00
|
|
|
- vaultwarden
|
|
|
|
|
|
|
|
pg-vaultwarden:
|
2024-09-28 02:00:33 +02:00
|
|
|
image: postgres:17-alpine
|
2023-09-13 22:33:47 +02:00
|
|
|
container_name: pg-vaultwarden
|
|
|
|
restart: "${RESTART:-no}"
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=vaultwarden
|
|
|
|
- POSTGRES_USER=vaultwarden
|
|
|
|
- POSTGRES_PASSWORD=${VAULTWARDEN_PG_PWD:-vaultwarden}
|
|
|
|
volumes:
|
|
|
|
- ${BASE_DIR:-/srv}/vaultwarden/psql:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- vaultwarden
|