forked from tfenster/windows-hosts-writer
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
48 lines (48 loc) · 1.44 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
services:
traefik:
isolation: ${TRAEFIK_ISOLATION}
image: ${TRAEFIK_IMAGE}
command:
- "--ping"
- "--api.insecure=true"
- "--providers.docker.endpoint=npipe:////./pipe/docker_engine"
- "--providers.docker.exposedByDefault=false"
- "--providers.file.directory=C:/etc/traefik/config/dynamic"
- "--entryPoints.websecure.address=:443"
- "--entryPoints.websecure.forwardedHeaders.insecure"
ports:
- "443:443"
- "8079:8080"
healthcheck:
test: ["CMD", "traefik", "healthcheck", "--ping"]
volumes:
- source: \\.\pipe\docker_engine\
target: \\.\pipe\docker_engine\
type: npipe
- ./docker/traefik:C:/etc/traefik
whoami:
image: stefanscherer/whoami:2.0.1
environment:
- ASPNETCORE_URLS=http://+:80
networks:
default:
aliases: [ "${WHOAMI_HOST}" ]
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami-secure.entrypoints=websecure"
- "traefik.http.routers.whoami-secure.rule=Host(`${WHOAMI_HOST}`)"
- "traefik.http.routers.whoami-secure.tls=true"
whw:
isolation: ${ISOLATION}
image: ${WHW_IMAGE}
build:
context: .
args:
BASE_IMAGE: ${BASE_IMAGE}
volumes:
- C:\windows\system32\drivers\etc:C:\driversetc
- source: \\.\pipe\docker_engine\
target: \\.\pipe\docker_engine\
type: npipe
environment:
TERMINATION_MAP: whoami:traefik