system-config/playbooks/roles/etherpad/templates/docker-compose.yaml.j2
Monty Taylor 7657b69387 Build and use our own etherpad image
We need to install the ep_headings plugin. We've got a hack in place
to do it in prod, but it seems like every time we npm install the
plugin in ansible, we need to restart the etherpad container
for $reasons.

It's cleaner to just build an image based on upstream with ep_headings
installed.

Change-Id: Id3b31bbabbbc5f6dcfe56486e48916384292f693
2020-04-13 08:07:09 -05:00

26 lines
731 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/opendevorg/etherpad
network_mode: host
environment:
NODE_ENV: production
volumes:
- /etc/etherpad/settings.json:/opt/etherpad-lite/settings.json