
Upstream likes building the settings file into the image, but that's less exciting, let's bind-mount ours in. Depends-On: https://review.opendev.org/717491/ Change-Id: Ia1894d884ef2a84e1282345b77fe07bf8898f367
24 lines
691 B
Django/Jinja
24 lines
691 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.4
|
|
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 }}"
|
|
volumes:
|
|
- /var/etherpad/db:/var/lib/mysql
|
|
- /etc/etherpad/mysql:/etc/mysql/conf.d
|
|
etherpad:
|
|
restart: always
|
|
image: docker.io/etherpad/etherpad:1.8.0
|
|
network_mode: host
|
|
volumes:
|
|
- /etc/etherpad/settings.json:/opt/etherpad-lite/settings.json
|