From 69e14c25c81f03f87d36bea84ecfb6202308a0ca Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 12 Dec 2024 14:14:49 -0800 Subject: [PATCH] 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 --- playbooks/roles/lodgeit/templates/docker-compose.yaml.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/lodgeit/templates/docker-compose.yaml.j2 b/playbooks/roles/lodgeit/templates/docker-compose.yaml.j2 index b5cc215ce3..d9def7c806 100644 --- a/playbooks/roles/lodgeit/templates/docker-compose.yaml.j2 +++ b/playbooks/roles/lodgeit/templates/docker-compose.yaml.j2 @@ -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: