Log with journald and not syslog in lodgeit docker compose

For some of our containers (including lodgeit) we emit logs to syslog
then have special syslog rules to record container logs into
/var/log/caontainers/. Unfortunately, podman does not support emitting
logs to syslog, but it does support journald. Since our journald setup
on Ubuntu also emits to syslog our existing syslog rules should continue
to work.

Convert lodgeit to journald from syslog to act as a canary as we prepare
for a slow but eventual migration to docker compose + podman as the
management system for our containers.

Change-Id: Ia6ef1c0e932c350f2b029edc7da6cb9e77663e5c
This commit is contained in:
Clark Boylan 2024-12-12 14:14:49 -08:00
parent 91d823fd97
commit 69e14c25c8

View File

@ -17,7 +17,7 @@ services:
volumes:
- /var/lib/lodgeit/mariadb:/var/lib/mysql
logging:
driver: syslog
driver: journald
options:
tag: "docker-mariadb"
lodgeit:
@ -29,7 +29,7 @@ services:
user: "10100:10100"
command: ['/bin/bash', '-c', 'echo "*** Starting"; sleep 30; /usr/local/bin/uwsgi']
logging:
driver: syslog
driver: journald
options:
tag: "docker-lodgeit"
environment: