-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (94 loc) · 2.67 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: "3.8"
services:
reverse-proxy:
image: traefik:v2.3
command:
# Enables the Web UI
- "--api.insecure=true"
# Enabling docker provider
- "--providers.docker"
# Do not expose containers unless explicitly told so
- "--providers.docker.exposedbydefault=false"
ports:
# Http
- 80:80
# Web UI
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
dave:
container_name: dave
build:
context: .
labels:
- "traefik.enable=true"
- "traefik.http.routers.dave.rule=Host(`localhost`)"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
helloworld:
image: theknarf/hello-world
container_name: helloworld
labels:
- "traefik.enable=true"
- "traefik.http.routers.helloworld.rule=Host(`helloworld.localhost`)"
- "dave.relativeSubdomain=helloworld"
restart: unless-stopped
helloworld2:
image: theknarf/hello-world
container_name: helloworld2
labels:
- "traefik.enable=true"
- "traefik.http.routers.helloworld2.rule=Host(`helloworld2.localhost`)"
- "dave.relativeSubdomain=helloworld2"
environment:
- title=Hello two.
- bgcolor=#4B3F72
- textcolor=#EEE5E9
restart: unless-stopped
helloworld3:
image: theknarf/hello-world
labels:
- "traefik.enable=true"
- "traefik.http.routers.helloworld3.rule=Host(`helloworld3.localhost`)"
- "dave.relativeSubdomain=helloworld3"
- "dave.name=Hello World 3"
environment:
- title=Hello three.
- bgcolor=#2D3142
- textcolor=#4F5D75
restart: unless-stopped
helloworld4:
image: theknarf/hello-world
labels:
- "traefik.enable=true"
- "traefik.http.routers.helloworld4.rule=Host(`helloworld4.localhost`)"
- "dave.url=//helloworld4.localhost"
- "dave.name=Hello World 4"
environment:
- title=Hello 4.
restart: unless-stopped
helloworld5:
image: theknarf/hello-world
labels:
- "traefik.enable=true"
- "traefik.http.routers.helloworld5.rule=Host(`helloworld5.localhost`)"
- "dave.url=//helloworld5.localhost"
- "dave.name=Hello World 5"
environment:
- title=Hello 5.
- bgcolor=#4B3F72
- textcolor=#EEE5E9
restart: unless-stopped
helloworld6:
image: theknarf/hello-world
labels:
- "traefik.enable=true"
- "traefik.http.routers.helloworld6.rule=Host(`helloworld6.localhost`)"
- "dave.url=//helloworld6.localhost"
- "dave.name=Hello World 6"
environment:
- title=Hello 6.
- bgcolor=#2D3142
- textcolor=#4F5D75
restart: unless-stopped