system-config/playbooks/roles/refstack/templates/docker-compose.yaml.j2
Clark Boylan 7ad66ad0cf Upgrade Refstack's MariaDB to 10.11
We are currently running MariaDB 10.4 for refstack. We use the
MARIADB_AUTO_UPGRADE flag to automatically upgrade the mariadb install
to 10.11 when switching the image version over to 10.11. This was
successfully performed against the lodgeit paste service.

Change-Id: I75262bc8eba3dd59d5869be9bf568fd66dc7f608
2024-03-04 13:27:20 -08:00

37 lines
982 B
Django/Jinja

# Version 2 is the latest that is supported by docker-compose in
# Ubuntu Xenial.
version: '2'
services:
mariadb:
image: docker.io/library/mariadb:10.11
network_mode: host
restart: always
environment:
MYSQL_ROOT_PASSWORD: "{{ refstack_root_db_password }}"
MYSQL_DATABASE: refstack
MYSQL_USER: "{{ refstack_db_username }}"
MYSQL_PASSWORD: "{{ refstack_db_password }}"
MARIADB_AUTO_UPGRADE: 1
volumes:
- /var/lib/refstack/db:/var/lib/mysql
logging:
driver: syslog
options:
tag: "docker-mariadb"
refstack-api:
depends_on:
- mariadb
image: opendevorg/refstack:latest
network_mode: host
restart: always
volumes:
- /var/lib/refstack/etc/refstack.conf:/etc/refstack.conf
- /var/lib/refstack/etc/config.json:/refstack-ui/app/config.json
- /var/lib/refstack/data:/var/run/data
logging:
driver: syslog
options:
tag: "docker-refstack-api"