forked from ehcaning/proxmox-docker-iac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vaultwarden.yml
56 lines (52 loc) · 1.3 KB
/
vaultwarden.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
networks:
vaultwarden-network:
name: vaultwarden-network
volumes:
vaultwarden:
services:
vaultwarden:
container_name: vaultwarden
hostname: vaultwarden
image: vaultwarden/server:latest
networks:
- vaultwarden-network
volumes:
- vaultwarden:/data
environment:
TZ: Europe/Berlin
WEBSOCKET_ENABLED: true
# todo: turn this off later
SIGNUPS_ALLOWED: true
DATABASE_URL: data/db.sqlite3
ADMIN_TOKEN: ${ADMIN_TOKEN}
DOMAIN: https://passwords.ehcan.me
restart: unless-stopped
cloudflared:
container_name: vaultwarden-cloudflared
image: cloudflare/cloudflared:latest
networks:
- vaultwarden-network
environment:
TZ: Europe/Berlin
command:
[
"tunnel",
"--no-autoupdate",
"run",
"--token",
"${CLOUDFLARED_TOKEN}"
]
restart: unless-stopped
s3sync-backblaze:
container_name: vaultwarden-s3sync-backblaze
image: minio/mc:latest
volumes:
- vaultwarden:/vaultwarden
environment:
MC_HOST_backblaze: "https://${VAULTWARDEN_S3_ACCESS_KEY}:${VAULTWARDEN_S3_SECRET_KEY}@${VAULTWARDEN_S3_URL}"
entrypoint: [
"mc", "mirror",
"--watch",
"--overwrite",
"/vaultwarden", "backblaze/${VAULTWARDEN_S3_BUCKET_NAME}"
]