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

33 lines
1003 B
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 }}
- 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 }}
volumes:
- ./data:/data
ports:
- "127.0.0.1:4000:4000"
depends_on:
- database