ac6b11037d
Co-authored-by: jbdoumenjou <jb.doumenjou@gmail.com>
18 lines
651 B
YAML
18 lines
651 B
YAML
version: '3'
|
|
|
|
services:
|
|
# The reverse proxy service (Traefik)
|
|
reverse-proxy:
|
|
image: traefik # The official Traefik docker image
|
|
command: --api --docker # Enables the web UI and tells Traefik to listen to docker
|
|
ports:
|
|
- "80:80" # The HTTP port
|
|
- "8080:8080" # The Web UI (enabled by --api)
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
|
|
|
|
# A container that exposes a simple API
|
|
whoami:
|
|
image: containous/whoami # A container that exposes an API to show its IP address
|
|
labels:
|
|
- "traefik.router.rule=Host:whoami.docker.localhost"
|