Skip to content

Instantly share code, notes, and snippets.

@nalanj
Created August 25, 2018 14:15
Show Gist options
  • Save nalanj/49dc2b6ce20819ddcf348486e6021c32 to your computer and use it in GitHub Desktop.
Save nalanj/49dc2b6ce20819ddcf348486e6021c32 to your computer and use it in GitHub Desktop.
version: "3"
services:
randolog:
image: golang
command: go run /usr/src/randolog/main.go
volumes:
- ./randolog/:/usr/src/randolog/
logging:
driver: fluentd
options:
fluentd-address: "localhost:24224"
tag: "docker.{{.ID}}"
fluentd:
build:
context: ./fluentd/
ports:
- "24224:24224"
- "24224:24224/udp"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
expose:
- 9200
- 9300
environment:
- discovery.type=single-node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment