mirror of
https://github.com/KevinMidboe/schleppe-ha-project.git
synced 2026-01-27 02:55:53 +00:00
docker-compose resource definitions for web servers
This commit is contained in:
29
docker-compose/whoami/docker-compose.yml
Normal file
29
docker-compose/whoami/docker-compose.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
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.example.com`)"
|
||||
- "traefik.http.routers.whoami.entrypoints=web"
|
||||
|
||||
# Service definition
|
||||
- "traefik.http.services.whoami.loadbalancer.server.port=80"
|
||||
|
||||
# NETWORK DEFINITIONS
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user