Clark Boylan 1d951ccf1d Deploy mariadb for etherpad from opendev's quay mirror
This is all in an effort to reduce our total dependency on docker hub as
rate limits there are quite low. Every image we can pull from somewhere
else is more rate limit bandwidht we can use for images still on docker
hub.

Change-Id: I3566383acf43e556fcd5854f6dfb70af8ffa1ba2
2025-01-28 12:56:36 -08:00

35 lines
925 B
Django/Jinja

# Version 2 is the latest that is supported by docker-compose in
# Ubuntu Xenial.
version: '2'
services:
mariadb:
image: quay.io/opendevmirror/mariadb:10.11
network_mode: host
restart: always
environment:
MYSQL_ROOT_PASSWORD: "{{ etherpad_db_root_password }}"
MYSQL_DATABASE: etherpad-lite
MYSQL_USER: "{{ etherpad_db_user }}"
MYSQL_PASSWORD: "{{ etherpad_db_password }}"
MARIADB_AUTO_UPGRADE: 1
volumes:
- /var/etherpad/db:/var/lib/mysql
- /etc/etherpad/mysql:/etc/mysql/conf.d
logging:
driver: syslog
options:
tag: "docker-mariadb"
etherpad:
restart: always
image: docker.io/opendevorg/etherpad
network_mode: host
environment:
NODE_ENV: production
logging:
driver: syslog
options:
tag: "docker-etherpad"
volumes:
- /etc/etherpad/settings.json:/opt/etherpad-lite/settings.json