Update backup and setup ente admin

This commit is contained in:
Florent Guiotte 2026-01-18 18:29:38 +01:00
parent 274a733dae
commit b335a0c9c0
2 changed files with 12 additions and 3 deletions

View File

@ -15,7 +15,7 @@ from datetime import datetime
COMPOSE_PATH = Path('docker-compose.yml') COMPOSE_PATH = Path('docker-compose.yml')
BACKUP_PATH = Path('./data/bkp') BACKUP_PATH = Path('./backup/docker_named_volumes')
VOLUME_PREFIX = 'docker_' VOLUME_PREFIX = 'docker_'
@ -65,7 +65,7 @@ def group_volumes(services, volumes, services_group):
for group_name, group in services_group.items(): for group_name, group in services_group.items():
group_volumes = group.setdefault('volumes', []) group_volumes = group.setdefault('volumes', [])
for service in group['services']: for service in group['services']:
for volume in [v.split(':')[0] for v in services[service]['volumes']]: for volume in [v.split(':')[0] for v in services[service].get('volumes', [])]:
if volume in volumes: group_volumes += [volume] if volume in volumes: group_volumes += [volume]
return services_group return services_group
@ -102,7 +102,7 @@ if __name__ == '__main__':
print('no volumes') print('no volumes')
continue continue
print('run backup...') print(f'{group["volumes"]}: run backup...')
run_docker_compose(f'stop {" ".join(group["services"])}') run_docker_compose(f'stop {" ".join(group["services"])}')
for volume in group['volumes']: for volume in group['volumes']:

View File

@ -503,6 +503,15 @@ services:
ENTE_APPS_CAST: https://tele-photos.guiotte.fr ENTE_APPS_CAST: https://tele-photos.guiotte.fr
ENTE_APPS_EMBED_ALBUMS: https://capsule-photos.guiotte.fr ENTE_APPS_EMBED_ALBUMS: https://capsule-photos.guiotte.fr
ENTE_APPS_ACCOUNTS: https://comptes-photos.guiotte.fr ENTE_APPS_ACCOUNTS: https://comptes-photos.guiotte.fr
ENTE_INTERNAL_ADMIN: 1580559962386438
ENTE_INTERNAL_DISABLE_REGISTRATION: true
ENTE_SMTP_HOST: ${MAIL_SERVER}
ENTE_SMTP_PORT: ${MAIL_SMTP_PORT}
ENTE_SMTP_USERNAME: ${MAIL_USERNAME}
ENTE_SMTP_PASSWORD: ${MAIL_PASSWORD}
ENTE_SMTP_SENDER_NAME: Ente
ENTE_SMTP_EMAIL: ${MAIL_USERNAME}
ENTE_SMTP_ENCRYPTION: ssl
secrets: secrets:
- ente-db-pw - ente-db-pw
- ente-s3-key - ente-s3-key