Flightairmap - Funky Penguin's Geek Cookbook


#1
 Flightairmap db-backup: image: mariadb:10 env_file: /var/data/config/flightairmap/flightairmap.env volumes: - /var/data/flightairmap/database-dump:/dump entrypoint: | bash -c 'bash -s < /dump/dump_`date +%d-%m-%Y""%H%M_%S`.sql.gz (ls -t /dump/dump*.sql.gz|head -n $$BACKUP_NUM_KEEP;ls /dump/dump*.sql.gz)|sort|uniq -u|xargs rm -- {} sleep $$BACKUP_FREQUENCY done EOF' networks: - internal networks: traefik_public: external: true internal: driver: overlay ipam: config: - subnet: 172.16.44.0/24

This is a companion discussion topic for the original entry at https://geek-cookbook.funkypenguin.co.nz/recipes/flightairmap/