Ian Wienand 535757551c
etherpad: redirect container logs
Redirect etherpad container logs via rsyslogd to /var/log/containers,
which is rotated by default.  This avoids some issues we've seen with
the journal becoming too big.

Change-Id: Id557b9265e30acdb2ca09631dbedf034f85a700f
2022-11-09 07:46:15 +11:00

34 lines
890 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
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