-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.29 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
version: '3.3'
services:
example.reverse-proxy:
container_name: "example.reverse-proxy"
image: traefik:v1.7
command: --api --docker # Enables the web UI and tells Traefik to listen to docker
labels:
- traefik.frontend.rule=Host:monitor.example.localhost
- traefik.port=8080 # web ui (enabled by --api)
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock # make traefik listen to docker events
# example.api:
# container_name: "example.api"
# build:
# context: "./services/example.api/"
# labels:
# - traefik.frontend.rule=Host:api.example.localhost
# depends_on:
# - "example.reverse-proxy"
# expose:
# - "80"
# volumes:
# - "./services/example.api/appsrc:/var/www/html"
# example.angular:
# container_name: "example.angular"
# build:
# context: "./services/example.angular/"
# labels:
# - traefik.live.frontend.rule=Host:angular.example.localhost
# - traefik.live.port=4200
# - traefik.static.frontend.rule=Host:static.angular.example.localhost
# - traefik.static.port=80
# depends_on:
# - "example.reverse-proxy"
# expose:
# - "80"
# - "4200"
# volumes:
# - "./services/example.angular/appsrc:/var/www/html"