Fix backup container
This commit is contained in:
@ -135,6 +135,8 @@ services:
|
|||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- postgresql-data:/var/lib/postgresql/data
|
- postgresql-data:/var/lib/postgresql/data
|
||||||
|
# Backup Restore
|
||||||
|
#- zammad-backup:/var/tmp/zammad:ro
|
||||||
secrets:
|
secrets:
|
||||||
- db_password
|
- db_password
|
||||||
|
|
||||||
|
@ -26,10 +26,5 @@ file_env() {
|
|||||||
|
|
||||||
file_env "POSTGRESQL_PASS"
|
file_env "POSTGRESQL_PASS"
|
||||||
|
|
||||||
if [ "$1" == "zammad-backup" ];
|
# https://github.com/zammad/zammad/blob/develop/contrib/docker/docker-entrypoint.sh
|
||||||
then
|
bash -c "/docker-entrypoint.sh $@"
|
||||||
bash -c "/usr/local/bin/backup.sh $@"
|
|
||||||
else
|
|
||||||
# https://github.com/zammad/zammad-docker-compose/blob/master/containers/zammad/docker-entrypoint.sh
|
|
||||||
bash -c "/docker-entrypoint.sh $@"
|
|
||||||
fi
|
|
||||||
|
Reference in New Issue
Block a user