-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
62 lines (56 loc) · 1.34 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
version: "3.2"
services:
proxy:
image: traefik:v2.0
command:
- "--log.level=INFO"
- "--api.insecure=true"
- "--providers.docker" # Tells Traefik to listen to docker
ports:
- "3000:80"
- "3001:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- internal
- default
whoami:
image: containous/whoami
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
networks:
- internal
pino:
build:
context: ./pino
image: my-pino
env_file: docker-compose.env
ports:
- "4000" # Internal port of docker container
labels:
- "traefik.enable=true"
- "traefik.backend=pino"
- "traefik.http.routers.pino.rule=Host(`pino.docker.localhost`)"
#- "traefik.frontend.rule=Host:pino.localhost"
depends_on:
- proxy
networks:
- internal
mino:
build:
context: ./mino
image: my-mino
ports:
- "5000" # Internal port of docker container
labels:
- "traefik.enable=true"
- "traefik.backend=mino"
- "traefik.http.routers.mino.rule=Host(`mino.docker.localhost`)"
#- "traefik.frontend.rule=Host:mino.localhost"
depends_on:
- proxy
networks:
- internal
networks:
internal: