sunetdrive/templates/mariadb/docker-compose_mariadb.yml.erb
2024-10-02 17:39:01 +02:00

27 lines
704 B
Plaintext

version: '3'
services:
db:
image: docker.sunet.se/drive/mariadb:<%= @mariadb_version %>
container_name: mariadb_db_1
restart: always
volumes:
- /etc/mariadb/backups:/backups
- /etc/mariadb/conf:/etc/mysql/mariadb.conf.d
- /etc/mariadb/datadir:/var/lib/mysql
- /etc/mariadb/init:/docker-entrypoint-initdb.d
- /etc/mariadb/scripts:/scripts
network_mode: host
dns:
- 89.46.20.75
- 89.46.21.29
- 89.32.32.32
environment:
- MYSQL_ROOT_PASSWORD=<%= @mysql_root_password %>
- BOOTSTRAP=<%= @bootstrap %>
- FORCE_BOOTSTRAP=0
command: "--wsrep_cluster_address=gcomm://<%= @db_ip.join(',') %>"
tty: true