sunetdrive/templates/mariadb/docker-compose_mariadb.yml.erb

27 lines
704 B
Plaintext
Raw Normal View History

2023-02-13 09:44:56 +00:00
version: '3'
services:
db:
image: docker.sunet.se/drive/mariadb:<%= @mariadb_version %>
container_name: mariadb_db_1
2023-02-13 09:44:56 +00:00
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
2024-10-02 15:37:14 +00:00
command: "--wsrep_cluster_address=gcomm://<%= @db_ip.join(',') %>"
2023-02-13 09:44:56 +00:00
tty: true