Mans Ziesel
1d1f9b0fe7
All checks were successful
Build docker container / Build image (push) Successful in 2m2s
46 lines
994 B
YAML
46 lines
994 B
YAML
services:
|
|
|
|
traefik:
|
|
image: "traefik:v3.0"
|
|
container_name: "traefik"
|
|
command:
|
|
#- "--log.level=DEBUG"
|
|
- "--api.insecure=true"
|
|
- "--providers.docker=true"
|
|
- "--providers.docker.exposedbydefault=false"
|
|
- "--entryPoints.web.address=:80"
|
|
ports:
|
|
- "80:80"
|
|
- "8090:8080"
|
|
volumes:
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
networks:
|
|
- test
|
|
|
|
whoami:
|
|
image: "traefik/whoami"
|
|
container_name: "simple-service"
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.whoami.rule=Path(`/`)"
|
|
- "traefik.http.routers.whoami.entrypoints=web"
|
|
networks:
|
|
- test
|
|
|
|
ip-svc:
|
|
build: .
|
|
container_name: "ip-svc"
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.ip-svc.rule=Path(`/`) || Path(`/api`)"
|
|
- "traefik.http.routers.ip-svc.entrypoints=web"
|
|
networks:
|
|
- test
|
|
|
|
networks:
|
|
test:
|
|
enable_ipv6: true
|
|
driver: bridge
|
|
default:
|
|
|