2020-01-22 19:57:33 +00:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
2020-02-07 21:14:50 +00:00
|
|
|
|
2020-02-12 18:34:06 +00:00
|
|
|
traefik:
|
|
|
|
image: traefik:2.1.4
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8080:80
|
|
|
|
command:
|
|
|
|
- "--providers.docker"
|
|
|
|
- "--providers.docker.exposedbydefault=false"
|
|
|
|
- "--entrypoints.web.address=:80"
|
|
|
|
- "--api.dashboard=true"
|
|
|
|
labels:
|
|
|
|
- "traefik.http.routers.traefik.rule=Host(`172.28.128.30`)"
|
|
|
|
- 'traefik.http.middlewares.auth.basicauth.users=admin:$$apr1$$T1l.BCFz$$Jyg8msXYEAUi3LLH39I9d1'
|
|
|
|
- "traefik.http.routers.traefik.middlewares=auth@docker"
|
|
|
|
- "traefik.http.routers.traefik.service=api@internal"
|
|
|
|
- "traefik.docker.network=proxy_traefik-net"
|
|
|
|
- "traefik.enable=true"
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
|
2020-02-07 21:14:50 +00:00
|
|
|
fluentd:
|
|
|
|
build: ./fluentd
|
|
|
|
restart: always
|
2020-02-11 21:25:20 +00:00
|
|
|
volumes:
|
|
|
|
- /var/log:/var/log/hostlogs
|
2020-02-07 21:14:50 +00:00
|
|
|
networks:
|
|
|
|
- graylog
|
|
|
|
ports:
|
|
|
|
- 24224:24224
|
|
|
|
- 24224:24224/udp
|
2020-02-10 21:17:24 +00:00
|
|
|
- 5140:5140/udp
|
2020-02-07 21:14:50 +00:00
|
|
|
|
2020-01-22 19:57:33 +00:00
|
|
|
mongo:
|
|
|
|
image: mongo:4.2.2
|
2020-01-31 18:53:21 +00:00
|
|
|
restart: always
|
2020-01-22 19:57:33 +00:00
|
|
|
networks:
|
|
|
|
- graylog
|
|
|
|
|
|
|
|
elasticsearch:
|
|
|
|
image: elasticsearch:6.8.6
|
2020-01-31 18:53:21 +00:00
|
|
|
restart: always
|
2020-01-22 19:57:33 +00:00
|
|
|
environment:
|
|
|
|
- http:host=0.0.0.0
|
|
|
|
- transport.host=localhost
|
|
|
|
- network.host=0.0.0.0
|
|
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
networks:
|
|
|
|
- graylog
|
|
|
|
|
|
|
|
graylog:
|
2020-02-10 20:16:39 +00:00
|
|
|
image: graylog/graylog:3.2.1
|
2020-01-31 18:53:21 +00:00
|
|
|
restart: always
|
2020-01-22 19:57:33 +00:00
|
|
|
environment:
|
|
|
|
- GRAYLOG_PASSWORD_SECRET=LongerPassword01
|
|
|
|
# Password: admin
|
|
|
|
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
|
|
|
|
- GRAYLOG_HTTP_EXTERNAL_URI=http://172.28.128.30:9000/
|
|
|
|
networks:
|
|
|
|
- graylog
|
|
|
|
depends_on:
|
|
|
|
- mongo
|
|
|
|
- elasticsearch
|
|
|
|
ports:
|
|
|
|
# Graylog web interface and REST API
|
|
|
|
- 9000:9000
|
|
|
|
# Syslog TCP
|
|
|
|
- 1514:1514
|
|
|
|
# Syslog UDP
|
|
|
|
- 1514:1514/udp
|
|
|
|
# GELF TCP
|
|
|
|
- 12201:12201
|
|
|
|
# GELF UDP
|
|
|
|
- 12201:12201/udp
|
|
|
|
|
|
|
|
networks:
|
2020-02-12 18:34:06 +00:00
|
|
|
traefik-net:
|
2020-01-22 19:57:33 +00:00
|
|
|
graylog:
|
|
|
|
driver: bridge
|