-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
68 lines (62 loc) · 1.57 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
services:
reverse-proxy:
container_name: traefik
image: traefik:v3.0
restart: always
command:
- "--api.insecure=true"
- "--providers.docker"
- "--entryPoints.http.address=:80"
- "--entryPoints.https.address=:443"
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- default
mailhog:
container_name: mailhog
image: mailhog/mailhog:v1.0.1
logging:
driver: none
ports:
- "1025:1025" # smtp server
- "8025:8025" # web ui
labels:
- "traefik.http.routers.mailhog.rule=Host(`mailhog.test`)"
- "traefik.http.services.mailhog.loadbalancer.server.port=8025"
mysql:
container_name: mysql
image: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=user
- MYSQL_PASSWORD=pass
volumes:
- ~/storage/mysql56-datadir:/var/lib/mysql
ports:
- "3306:3306"
expose:
- "3306"
labels:
- "traefik.tcp.routers.mysql.rule=HostSNI(`mysql.test`)"
whoami:
container_name: whoami
image: containous/whoami:v1.5.0
restart: always
labels:
- "traefik.http.routers.whoami.rule=Host(`whoami.test`)"
- "traefik.http.routers.whoami-secure.rule=Host(`whoami.test`)"
- "traefik.http.routers.whoami-secure.tls=true"
adminer:
container_name: adminer
image: adminer:4.8.1
restart: always
labels:
- "traefik.http.routers.adminer.rule=Host(`adminer.test`)"
networks:
default:
name: local-dev