Files
schleppe-pulumi/docker-compose/whoami/docker-compose.yml
2025-12-31 15:12:55 +01:00

30 lines
579 B
YAML

version: '3'
services:
whoami:
image: traefik/whoami
container_name: whoami
restart: unless-stopped
# NETWORK
networks:
- traefik
# TRAEFIK LABELS
labels:
# Enable Traefik for this container
- "traefik.enable=true"
# Router definition
- "traefik.http.routers.whoami.rule=Host(`whoami.schleppe.cloud`)"
- "traefik.http.routers.whoami.entrypoints=web"
# Service definition
- "traefik.http.services.whoami.loadbalancer.server.port=80"
# NETWORK DEFINITIONS
networks:
traefik:
external: true