forked from devonfw/my-thai-star
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.traefik.yml
41 lines (40 loc) · 1.1 KB
/
docker-compose.traefik.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
version: "3"
services:
reverse-proxy:
restart: always
image: traefik
command: --api --docker
networks:
- my-thai-star
ports:
- "8081:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
labels:
- "traefik.enable=false"
java:
build: "java/"
restart: always
image: my-thai-star/java:latest
networks:
- my-thai-star
labels:
- "traefik.frontend.rule=PathPrefixStrip:/api/;AddPrefix:/mythaistar"
- "traefik.backend.healthcheck.path=/mythaistar/services/rest/dishmanagement/v1/category/0/"
- "traefik.backend.healthcheck.interval=10s"
- "traefik.backend.healthcheck.scheme=http"
angular:
build: "angular/"
restart: always
image: my-thai-star/angular:latest
networks:
- my-thai-star
labels:
- "traefik.frontend.rule=PathPrefix:/"
- "traefik.backend.healthcheck.path=/health"
- "traefik.backend.healthcheck.interval=10s"
- "traefik.backend.healthcheck.scheme=http"
networks:
my-thai-star:
driver: bridge