add restore-cli container, to restore from backups; update compose file to 2024.12 requirements;
This commit is contained in:
parent
b61bc9ce4f
commit
fe3da3dc3a
3 changed files with 51 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
||||||
# Project
|
# Project
|
||||||
.env
|
.env
|
||||||
lego.env
|
lego.env
|
||||||
|
docker-compose.yml
|
||||||
data/*
|
data/*
|
||||||
data/nginx/*
|
data/nginx/*
|
||||||
!data
|
!data
|
||||||
|
|
|
@ -64,8 +64,10 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgresql
|
postgresql:
|
||||||
- redis
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
- frontend
|
- frontend
|
||||||
|
@ -96,8 +98,10 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgresql
|
postgresql:
|
||||||
- redis
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
@ -188,6 +192,23 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/restic/ssh/:/run/secrets/.ssh:ro
|
- ./data/restic/ssh/:/run/secrets/.ssh:ro
|
||||||
|
|
||||||
|
restore-cli:
|
||||||
|
image: registry.git.base23.de/base23/backup/resticker:0.17.0
|
||||||
|
entrypoint: /entrypoint-restore
|
||||||
|
environment:
|
||||||
|
RESTIC_REPOSITORY: sftp://${RESTIC_REPO_USER:?Restic repository user is required}@${RESTIC_REPO_ADDRESS:?Restic repository address is requried}:${RESTIC_REPO_PORT:?Restic repository port is required}//backup
|
||||||
|
RESTIC_PASSWORD: '${RESTIC_REPO_PASSWORD:?Restic repository password is required}'
|
||||||
|
TZ: Europe/Berlin
|
||||||
|
volumes:
|
||||||
|
- ./data/restic/ssh/:/run/secrets/.ssh:ro
|
||||||
|
- ./docker-compose.yml:/compose-project/docker-compose.yml:ro
|
||||||
|
- ./.env:/compose-project/.env:ro
|
||||||
|
- backups_db:/var/lib/postgresql/backups:rw
|
||||||
|
- ./data/authentik/certs:/var/lib/authentik/backups/certs:rw
|
||||||
|
- ./data/authentik/custom-templates:/var/lib/authentik/backups/templates:rw
|
||||||
|
- ./data/authentik/media:/var/lib/authentik/backups/media:rw
|
||||||
|
- ./data/.lego:/var/lib/lego/backups:rw
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
backups_db:
|
backups_db:
|
||||||
|
|
|
@ -64,8 +64,10 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgresql
|
postgresql:
|
||||||
- redis
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
- web
|
- web
|
||||||
|
@ -106,8 +108,10 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgresql
|
postgresql:
|
||||||
- redis
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
@ -155,6 +159,23 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/restic/ssh/:/run/secrets/.ssh:ro
|
- ./data/restic/ssh/:/run/secrets/.ssh:ro
|
||||||
|
|
||||||
|
restore-cli:
|
||||||
|
image: registry.git.base23.de/base23/backup/resticker:0.17.0
|
||||||
|
entrypoint: /entrypoint-restore
|
||||||
|
environment:
|
||||||
|
RESTIC_REPOSITORY: sftp://${RESTIC_REPO_USER:?Restic repository user is required}@${RESTIC_REPO_ADDRESS:?Restic repository address is requried}:${RESTIC_REPO_PORT:?Restic repository port is required}//backup
|
||||||
|
RESTIC_PASSWORD: '${RESTIC_REPO_PASSWORD:?Restic repository password is required}'
|
||||||
|
TZ: Europe/Berlin
|
||||||
|
volumes:
|
||||||
|
- ./data/restic/ssh/:/run/secrets/.ssh:ro
|
||||||
|
- ./docker-compose.yml:/compose-project/docker-compose.yml:ro
|
||||||
|
- ./.env:/compose-project/.env:ro
|
||||||
|
- backups_db:/var/lib/postgresql/backups:rw
|
||||||
|
- ./data/authentik/certs:/var/lib/authentik/backups/certs:rw
|
||||||
|
- ./data/authentik/custom-templates:/var/lib/authentik/backups/templates:rw
|
||||||
|
- ./data/authentik/media:/var/lib/authentik/backups/media:rw
|
||||||
|
- ./data/.lego:/var/lib/lego/backups:rw
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
backups_db:
|
backups_db:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue