Skip to content

Instantly share code, notes, and snippets.

@stepankuzmin
Last active March 6, 2017 12:53
Show Gist options
  • Save stepankuzmin/68cb01a026d2a40b3703443b7f428a36 to your computer and use it in GitHub Desktop.
Save stepankuzmin/68cb01a026d2a40b3703443b7f428a36 to your computer and use it in GitHub Desktop.
version: '2'
services:
fluentd:
container_name: fluentd
image: fluent/fluentd
environment:
FLUENTD_CONF: fluent.conf
ports:
- 24224:24224
volumes:
- ./log:/fluentd/log
- ./fluent.conf:/fluentd/etc/fluent.conf
app:
container_name: app
image: ubuntu
depends_on:
- fluentd
logging:
driver: fluentd
command: echo hello world
<source>
type forward
port 24224
bind 0.0.0.0
</source>
<match *.*>
type stdout
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment