ansible/roles/vaultwarden/templates/docker-compose.yml.j2

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-09-03 12:21:08 +02:00
version: "3"
services:
database:
image: postgres:13.4-alpine
environment:
- POSTGRES_USER={{ vaultwarden_dbuser }}
- POSTGRES_PASSWORD={{ vaultwarden_dbpass }}
- POSTGRES_DB={{ vaultwarden_dbname }}
volumes:
- ./database:/var/lib/postgresql/data
app:
image: vaultwarden/server:latest
environment:
- DATABASE_URL=postgres://{{ vaultwarden_dbuser }}:{{ vaultwarden_dbpass }}@database/{{ vaultwarden_dbname }}
2022-09-03 12:58:15 +02:00
- SENDS_ALLOWED=false
2022-09-03 12:21:08 +02:00
- SIGNUPS_VERIFY=true
- SIGNUPS_DOMAINS_WHITELIST=binary-kitchen.de
- ADMIN_TOKEN={{ vaultwarden_token }}
- ORG_ATTACHMENT_LIMIT=1024
- USER_ATTACHMENT_LIMIT=1024
2022-09-03 12:29:32 +02:00
- DOMAIN=https://{{ vaultwarden_domain }}
2022-09-03 12:21:08 +02:00
- ROCKET_PORT=4000
- SMTP_HOST=mail.binary-kitchen.de
- SMTP_FROM=vaultwarden@binary-kitchen.de
- SMTP_FROM_NAME=Vaultwarden
- SMTP_PORT=25
- HELO_NAME={{ ansible_fqdn }}
2022-09-03 12:58:29 +02:00
- YUBICO_CLIENT_ID=78014
- YUBICO_SECRET_KEY={{ vaultwarden_yubico_secret }}
2022-09-03 12:21:08 +02:00
volumes:
- ./data:/data
ports:
- "127.0.0.1:4000:4000"
depends_on:
- database