Send docker logs to journald

This commit is contained in:
waffles
2023-01-18 22:56:13 -08:00
parent 91f1b7c12b
commit 6654e0b971
3 changed files with 10 additions and 0 deletions
@@ -2,6 +2,8 @@ version: '3'
services:
{% if ENV_PRODUCTION['STATSD_ADDR'] is defined %}
statsd:
logging:
driver: journald
restart: always
image: prom/statsd-exporter
command: --statsd.mapping-config=/tmp/statsd_mapping.yml
@@ -15,6 +17,8 @@ services:
- "127.0.0.1:9125:9125"
{% endif %}
pgbouncer:
logging:
driver: journald
restart: always
image: edoburu/pgbouncer
networks:
@@ -1,6 +1,8 @@
services:
{% for SK in sidekiq %}
sidekiq-{{ SK['name'] }}:
logging:
driver: journald
image: tootsuite/mastodon:{{ MASTODON_VERSION }}
restart: always
env_file: .env.production
@@ -1,6 +1,8 @@
version: '3'
services:
web:
logging:
driver: journald
image: tootsuite/mastodon:v4.0.2
restart: always
env_file: .env.production
@@ -21,6 +23,8 @@ services:
- ./public/system:/mastodon/public/system
streaming:
logging:
driver: journald
image: tootsuite/mastodon:v4.0.2
restart: always
env_file: .env.production