プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
0

Configure Feed

Select the types of activity you want to include in your feed.

create traefik

Kohei Watanabe (Dec 31, 2022, 3:30 AM +0900) 78312c01 e48d0b2c

+22
+17
traefik/compose.yml
··· 1 + services: 2 + traefik: 3 + image: traefik:v2.9 4 + ports: 5 + - "80:80" 6 + - "8080:8080" 7 + volumes: 8 + - /var/run/docker.sock:/var/run/docker.sock 9 + - ./traefik.yml:/etc/traefik/traefik.yml 10 + 11 + # Traefikでのサービス名は {Docker Composeでのサービス名}-{Docker Composeでのプロジェクト名} のようになる 12 + # https://github.com/traefik/traefik/blob/e54ee89330a800d509da7b11b46a6ecbb331e791/pkg/provider/docker/config.go#L412-L420 13 + # そうでない場合はコンテナ名 14 + # --providers.docker.defaultRule: Host(`{{ .Name }}.localhost`) 15 + # … {{ .Name }} はTraefikでのサービス名に置換される 16 + nginx: 17 + image: nginx:alpine
+5
traefik/traefik.yml
··· 1 + api: 2 + insecure: true 3 + providers: 4 + docker: 5 + defaultRule: Host(`{{ .Name }}.localhost`)