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

37 lines
1.1 KiB
Django/Jinja

---
version: "3.4"
services:
database:
image: postgres:13-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 }}
- SENDS_ALLOWED=false
- SIGNUPS_VERIFY=true
- SIGNUPS_DOMAINS_WHITELIST=binary-kitchen.de
- ADMIN_TOKEN={{ vaultwarden_token }}
- ORG_ATTACHMENT_LIMIT=1024
- USER_ATTACHMENT_LIMIT=1024
- DOMAIN=https://{{ vaultwarden_domain }}
- 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 }}
- YUBICO_CLIENT_ID=78014
- YUBICO_SECRET_KEY={{ vaultwarden_yubico_secret }}
volumes:
- ./data:/data
ports:
- "127.0.0.1:4000:4000"
depends_on:
- database