Skip to content

Instantly share code, notes, and snippets.

@arsalanses
Last active February 22, 2024 09:19
Show Gist options
  • Select an option

  • Save arsalanses/56e196ef0b20d20f964ed18bd724f354 to your computer and use it in GitHub Desktop.

Select an option

Save arsalanses/56e196ef0b20d20f964ed18bd724f354 to your computer and use it in GitHub Desktop.
logging from file into stdio
services:
tail-from-file:
image: busybox
container_name: tail-from-file
restart: unless-stopped
volumes:
- /var/log/system.log:/var/log/stream.log
command:
- tail
- -f
- /var/log/stream.log
network_mode: none
logging:
driver: "fluentd"
options:
fluentd-address: 123.123.123.123:123
tag: tag.access
fluentd-async: 'true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment