Answer the question
In order to leave comments, you need to log in
Only one of the two services is available through traefik, why?
Colleagues, tell me what I'm doing wrong?
I'm trying to raise the stack - traefik + mkdocs + keeweb. I lift everything locally, without any certificates. As a result, mkdocs is available at mkdocs.docker.localhost, and keeweb at keewb.docker.localhost gives 404.
docker-compose.yml
version: '3.4'
services:
traefik:
image: 'traefik:2.4'
restart: 'unless-stopped'
ports:
- '80:80'
- '8080:8080'
#- '443:443'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock:ro'
- './traefik/traefik.toml:/traefik.toml'
- './traefik/traefik_dynamic.toml:/traefik_dynamic.toml'
networks:
- pi
mkdocs:
image: squidfunk/mkdocs-material
restart: 'unless-stopped'
environment:
LIVE_RELOAD_SUPPORT: 'true'
ADD_MODULES: 'fontawesome-markdown'
FAST_MODE: 'true'
UPDATE_INTERVAL: 15
AUTO_UPDATE: 'true'
volumes:
- './mkdocs:/docs'
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.keeweb.entrypoints=web'
- 'traefik.http.routers.mkdocs.rule=Host(`mkdocs.docker.localhost`)'
- '[email protected]'
networks:
- pi
keeweb:
image: 'antelle/keeweb:latest'
restart: 'unless-stopped'
volumes:
# override nginx config
- "./keeweb/keeweb.conf:/etc/nginx/conf.d/keeweb.conf"
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.keeweb.entrypoints=web'
- 'traefik.http.routers.keeweb.rule=Host(`keeweb.docker.localhost`)'
networks:
- pi
networks:
pi:
external: true
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.websecure]
address = ":443"
[api]
dashboard = true
insecure = true
[providers.docker]
watch = true
exposedByDefault = false
[providers.file]
filename = "traefik_dynamic.toml"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question