mirror of
https://github.com/KevinMidboe/schleppe-pulumi.git
synced 2026-01-10 11:25:49 +00:00
30 lines
579 B
YAML
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
|
|
|