Send docker logs to journald
This commit is contained in:
@@ -2,6 +2,8 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
{% if ENV_PRODUCTION['STATSD_ADDR'] is defined %}
|
{% if ENV_PRODUCTION['STATSD_ADDR'] is defined %}
|
||||||
statsd:
|
statsd:
|
||||||
|
logging:
|
||||||
|
driver: journald
|
||||||
restart: always
|
restart: always
|
||||||
image: prom/statsd-exporter
|
image: prom/statsd-exporter
|
||||||
command: --statsd.mapping-config=/tmp/statsd_mapping.yml
|
command: --statsd.mapping-config=/tmp/statsd_mapping.yml
|
||||||
@@ -15,6 +17,8 @@ services:
|
|||||||
- "127.0.0.1:9125:9125"
|
- "127.0.0.1:9125:9125"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
pgbouncer:
|
pgbouncer:
|
||||||
|
logging:
|
||||||
|
driver: journald
|
||||||
restart: always
|
restart: always
|
||||||
image: edoburu/pgbouncer
|
image: edoburu/pgbouncer
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
{% for SK in sidekiq %}
|
{% for SK in sidekiq %}
|
||||||
sidekiq-{{ SK['name'] }}:
|
sidekiq-{{ SK['name'] }}:
|
||||||
|
logging:
|
||||||
|
driver: journald
|
||||||
image: tootsuite/mastodon:{{ MASTODON_VERSION }}
|
image: tootsuite/mastodon:{{ MASTODON_VERSION }}
|
||||||
restart: always
|
restart: always
|
||||||
env_file: .env.production
|
env_file: .env.production
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
|
logging:
|
||||||
|
driver: journald
|
||||||
image: tootsuite/mastodon:v4.0.2
|
image: tootsuite/mastodon:v4.0.2
|
||||||
restart: always
|
restart: always
|
||||||
env_file: .env.production
|
env_file: .env.production
|
||||||
@@ -21,6 +23,8 @@ services:
|
|||||||
- ./public/system:/mastodon/public/system
|
- ./public/system:/mastodon/public/system
|
||||||
|
|
||||||
streaming:
|
streaming:
|
||||||
|
logging:
|
||||||
|
driver: journald
|
||||||
image: tootsuite/mastodon:v4.0.2
|
image: tootsuite/mastodon:v4.0.2
|
||||||
restart: always
|
restart: always
|
||||||
env_file: .env.production
|
env_file: .env.production
|
||||||
|
|||||||
Reference in New Issue
Block a user