-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (73 loc) · 2.05 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
version: "3.3"
networks:
web:
external: true
internal:
external: false
services:
traefik:
image: "traefik:v2.6"
command:
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.web.http.redirections.entrypoint.scheme=https
- --api
- --providers.docker=true
- --providers.file.directory=/configuration/
- --providers.file.watch=true
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./configuration/:/configuration/"
- "./certs/:/etc/certs:ro"
labels:
- "traefik.http.routers.monitor.rule=Host(`monitor.traefik.test`)"
- "traefik.http.routers.monitor.service=api@internal"
- "traefik.http.routers.monitor.entrypoints=websecure"
- "traefik.http.routers.monitor.tls=true"
networks:
- web
whoami:
image: traefik/whoami:v1.7.1
labels:
- "traefik.http.routers.whoami.rule=Host(`traefik.test`)"
- "traefik.http.routers.whoami.entrypoints=websecure"
- "traefik.http.routers.whoami.tls=true"
networks:
- web
blog:
image: wordpress:4.9.8-apache
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_PASSWORD: test
labels:
- "traefik.http.routers.blog.rule=Host(`blog.traefik.test`)"
- "traefik.http.routers.blog.entrypoints=websecure"
- "traefik.http.routers.blog.tls=true"
- "traefik.docker.network=web"
networks:
- internal
- web
depends_on:
- db
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: test
networks:
- internal
labels:
- traefik.enable=false
adminer:
image: adminer:4.6.3-standalone
labels:
- "traefik.http.routers.adminer.rule=Host(`db-admin.traefik.test`)"
- "traefik.http.routers.adminer.entrypoints=websecure"
- "traefik.http.routers.adminer.tls=true"
- "traefik.docker.network=web"
networks:
- internal
- web