Created
June 4, 2020 17:11
-
-
Save edgars/4976a4492a5b3ed964c28b54045db4bb to your computer and use it in GitHub Desktop.
This file contains 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.3" | |
services: | |
traefik: | |
image: "traefik:v2.2" | |
container_name: "traefik" | |
command: | |
- "--log.level=DEBUG" | |
- "--api.insecure=true" | |
- "--providers.docker=true" | |
- "--providers.docker.exposedbydefault=false" | |
- "--entrypoints.web.address=:80" | |
ports: | |
- "80:80" | |
- "8080:8080" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock:ro" | |
krakend_ce: | |
image: "skalena:krakend" | |
container_name: "krakend-api-gw" | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.routers.krakend_ce.rule=Host(`localhost`)" | |
- "traefik.http.routers.krakend_ce.entrypoints=web" | |
# #- "traefik.http.services.krakend_ce.loadbalancer.server.port=8000" | |
# whoami: | |
# image: "containous/whoami" | |
# container_name: "simple-service" | |
# labels: | |
# - "traefik.enable=true" | |
# - "traefik.http.routers.whoami.rule=Host(`localhost`)" | |
# - "traefik.http.routers.whoami.entrypoints=web" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment