Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions chatmail_relay.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
/lib/systemd/system/plymouth* \
/lib/systemd/system/systemd-update-utmp*

# Forward journald to console so `docker compose logs` works
RUN mkdir -p /etc/systemd/journald.conf.d \
&& printf '[Journal]\nForwardToConsole=yes\n' > /etc/systemd/journald.conf.d/95-docker-console.conf

VOLUME [ "/sys/fs/cgroup" ]

# Main chatmail-relay image
Expand Down
5 changes: 0 additions & 5 deletions scripts/chatmail-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,3 @@ fi

# Signal success to Docker healthcheck
touch /run/chatmail-init.done

# Forward journald to console so `docker compose logs` works
grep -q '^ForwardToConsole=yes' /etc/systemd/journald.conf \
|| echo "ForwardToConsole=yes" >> /etc/systemd/journald.conf
systemctl restart systemd-journald
Loading