forked from ivandmitrenko/traefik_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (33 loc) · 956 Bytes
/
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
version: "3.3"
services:
traefik:
image: "traefik:v2.2"
container_name: "traefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
whoami:
image: "containous/whoami"
container_name: "simple-service"
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.ta.org.ua`)"
- "traefik.http.routers.whoami.entrypoints=web"
nginx:
build: ./nginx
container_name: "nginx1"
labels:
- "traefik.enable=true"
- "traefik.http.routers.nginx.rule=Host(`nginx.ta.org.ua`)"
- "traefik.http.routers.nginx.entrypoints=web"
- "traefik.port=80"
volumes:
- "./nginx/html:/usr/share/nginx/html:ro"