Removed backup temporarily and added Vaultwarden :)
This commit is contained in:
1 parent
7db528d39b
commit
86cb97d0bb
2 files changed
+13
-25
No files matched your search
+1
-8
@@ -4,14 +4,7 @@ DOMAIN_NAME=example.com
|
||||
# Subdomain Information (DO NOT EDIT AFTER RUNNING ONCE)
|
||||
WEBMAIL_SUBDOMAIN=mail
|
||||
MAIL_SUBDOMAIN=mx
|
||||
|
||||
# Compose Profiles (only backup-enabled exists)
|
||||
COMPOSE_PROFILES=
|
||||
|
||||
# Restic Config (Only fill out if enabling backups)
|
||||
RESTIC_REPOSITORY=""
|
||||
RESTIC_PASSWORD=""
|
||||
RESTIC_HOSTNAME=""
|
||||
PWD_SUBDOMAIN=pwd
|
||||
|
||||
# Secret Keys
|
||||
# These should be generated with `openssl rand -base64 32`.
|
||||
|
||||
+12
-17
@@ -51,6 +51,17 @@ services:
|
||||
networks:
|
||||
- proxy-net
|
||||
|
||||
pass_manager:
|
||||
image: vaultwarden/server:latest
|
||||
container_name: pass_manager
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- DOMAIN=https://${PWD_SUBDOMAIN}.${DOMAIN_NAME}
|
||||
volumes:
|
||||
- vw-data:/data/
|
||||
networks:
|
||||
- proxy-net
|
||||
|
||||
cert_sync:
|
||||
image: alpine:latest
|
||||
container_name: cert_sync
|
||||
@@ -63,23 +74,6 @@ services:
|
||||
- ./service_data/cert_sync:/data
|
||||
command: sh /data/sync-certs.sh
|
||||
|
||||
backup:
|
||||
image: mazzolino/restic
|
||||
container_name: backup
|
||||
restart: unless-stopped
|
||||
hostname: ${RESTIC_HOSTNAME}
|
||||
profiles:
|
||||
- backup-enabled
|
||||
environment:
|
||||
- BACKUP_CRON="0 2 * * *"
|
||||
- RUN_ON_STARTUP=true
|
||||
- RESTIC_REPOSITORY=${RESTIC_REPOSITORY}
|
||||
- RESTIC_PASSWORD=${RESTIC_PASSWORD}
|
||||
- RESTIC_FORGET_ARGS=--keep-last 7 --keep-daily 7 --keep-weekly 4 --prune
|
||||
volumes:
|
||||
- ~/.ssh:/run/secrets/.ssh:ro
|
||||
- /var/lib/docker/volumes:/data/volumes:ro
|
||||
|
||||
volumes:
|
||||
stalwart-etc:
|
||||
stalwart-data:
|
||||
@@ -87,6 +81,7 @@ volumes:
|
||||
caddy-data:
|
||||
bulwark-config:
|
||||
bulwark-state:
|
||||
vw-data:
|
||||
|
||||
|
||||
networks:
|
||||
|
||||
Reference in new issue
Block a user