Created
August 17, 2022 18:20
-
-
Save kek-Sec/feb289d4fde6d2148abba766dc731b1a to your computer and use it in GitHub Desktop.
ELK Stack Docker + Traefik + Basic auth
This file contains hidden or 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.7" | |
| services: | |
| elk: | |
| image: sebp/elk | |
| ports: | |
| - "5601:5601" | |
| - "9200:9200" | |
| - "5044:5044" | |
| restart: always | |
| container_name: elkstack | |
| hostname: elk | |
| volumes: | |
| - elk-data:/var/lib/elasticsearch | |
| labels: | |
| - "traefik.enable=true" | |
| - "traefik.http.routers.elk.rule=Host(`kibana.DOMAIN.COM`)" | |
| - "traefik.http.routers.elk.entrypoints=web" | |
| - "traefik.http.services.elk.loadbalancer.server.port=5601" | |
| - "traefik.http.routers.elk.service=elk" | |
| - "traefik.http.middlewares.test-auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0" | |
| - "traefik.http.routers.elk.middlewares=test-auth" | |
| networks: | |
| default: | |
| external: | |
| name: traefik_net | |
| volumes: | |
| elk-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment