mirror of
https://github.com/krislamo/graylog_demo
synced 2024-11-10 06:00:36 +00:00
Added traefik container
This commit is contained in:
parent
57d258cb35
commit
590f0a53ab
21
graylog.yml
21
graylog.yml
@ -2,6 +2,26 @@ version: '3.7'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
fluentd:
|
fluentd:
|
||||||
build: ./fluentd
|
build: ./fluentd
|
||||||
restart: always
|
restart: always
|
||||||
@ -61,5 +81,6 @@ services:
|
|||||||
- 12201:12201/udp
|
- 12201:12201/udp
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
traefik-net:
|
||||||
graylog:
|
graylog:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
Loading…
Reference in New Issue
Block a user