Last active
August 25, 2018 14:32
-
-
Save nalanj/2b75b8e633f3e9f646745ae42faf2166 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
grafana: | |
image: grafana/grafana | |
ports: | |
- 3000:3000 | |
volumes: | |
- ./grafana:/var/lib/grafana | |
depends_on: | |
- elasticsearch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment