sunetdrive/templates/mariadb_backup/docker-compose_mariadb_backup.yml.erb

22 lines
674 B
Plaintext
Raw Permalink Normal View History

2023-02-13 09:44:56 +00:00
version: '3.2'
services:
mariadb_backup:
image: docker.sunet.se/drive/mariadb
container_name: mariadb_backup_mariadb_backup_1
2023-02-13 09:44:56 +00:00
dns:
- 89.46.20.75
- 89.46.21.29
- 89.32.32.32
environment:
- MYSQL_ROOT_PASSWORD=<%= @mysql_root_password %>
volumes:
- /opt/mariadb_backup/backups:/backups
- /opt/mariadb_backup/conf:/etc/mysql/mariadb.conf.d
- /opt/mariadb_backup/datadir:/var/lib/mysql
- /opt/mariadb_backup/init:/docker-entrypoint-initdb.d
- /opt/mariadb_backup/start_replica_from_init.sh:/start_replica_from_init.sh
- /opt/mariadb_backup/do_backup.sh:/do_backup.sh
restart: always