Skip to content

Instantly share code, notes, and snippets.

@edgars
Created June 4, 2020 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edgars/4976a4492a5b3ed964c28b54045db4bb to your computer and use it in GitHub Desktop.
Save edgars/4976a4492a5b3ed964c28b54045db4bb to your computer and use it in GitHub Desktop.
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