-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (34 loc) · 1.14 KB
/
docker-compose.yml
File metadata and controls
40 lines (34 loc) · 1.14 KB
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
version: "3"
networks:
default:
external:
name: accu.dev
services:
web:
container_name: reverse_proxy
image: traefik:v2.0.5
ports:
# The Web UI
#- "8080:8080"
# The HTTP port
- "80:80"
# The HTTPS port
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./manifest/etc/traefik:/etc/traefik
labels:
- "traefik.http.middlewares.traefik-https.redirectscheme.scheme=https"
- "traefik.http.routers.traefik-http.entrypoints=web"
- "traefik.http.routers.traefik-http.rule=Host(`traefik.docker.localhost`)"
- "traefik.http.services.web.loadbalancer.server.port=8080"
- "traefik.http.routers.traefik-http.middlewares=traefik-https@docker"
- "traefik.http.routers.traefik.entrypoints=web-secure"
- "traefik.http.routers.traefik.rule=Host(`traefik.docker.localhost`)"
- "traefik.http.routers.traefik.tls=true"
whoami:
# A container that exposes an API to show its IP address
image: containous/whoami
container_name: whoami
labels:
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"