system-config/playbooks/roles/mariadb/templates/docker-compose.yaml.j2
James E. Blair 99342db824 Add a standalone zuul db server
Change-Id: Ibb260f820dbc1d9d6ca523ff3903134612cb003e
2024-04-04 12:25:23 -07:00

19 lines
513 B
Django/Jinja

version: '2'
services:
mariadb:
image: docker.io/library/mariadb:10.11
network_mode: host
environment:
MYSQL_ROOT_PASSWORD: "{{ mariadb_root_password }}"
MYSQL_DATABASE: "{{ mariadb_dbname }}"
MYSQL_USER: "{{ mariadb_username }}"
MYSQL_PASSWORD: "{{ mariadb_password }}"
MARIADB_AUTO_UPGRADE: 1
volumes:
- /var/mariadb/db:/var/lib/mysql
- /var/mariadb/etc:/etc/mysql/conf.d
logging:
driver: syslog
options:
tag: "docker-mariadb"