system-config/playbooks/roles/etherpad/templates/docker-compose.yaml.j2

35 lines
921 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: "{{ 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