forked from SoftVarE-Group/uvl-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-http.yaml
67 lines (62 loc) · 2.05 KB
/
docker-compose-http.yaml
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
version: '3.9'
services:
traefik:
image: traefik:v3.0
ports:
- 80:80
- 30000:30000
- 3000:3000
networks:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
#- /var/log:/var/log
command:
- --api.dashboard=true
- --log.level=DEBUG
#- --log.filepath=/var/log/traefik.log
- --accesslog=true
#- --accesslog.filepath=/var/log/traefik-access.log
- --providers.docker.network=proxy
- --providers.docker.exposedByDefault=false
- --entrypoints.web.address=:80
- --entrypoints.ws.address=:30000
- --entrypoints.config.address=:3000
labels:
- traefik.enable=true
- traefik.http.routers.mydashboard.rule=Host(`localhost`) && Path(`/dashboard`)
- traefik.http.routers.mydashboard.service=api@internal
webserver:
build:
context: ./WebSocketClient
dockerfile: Dockerfile
restart: on-failure
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.webserver.rule=Host(`localhost`)"
- "traefik.http.routers.webserver.service=webserver"
- "traefik.http.services.webserver.loadbalancer.server.port=80"
- "traefik.http.routers.webserver.entrypoints=web"
languageserver:
build:
context: ./WebSocketLanguageServer
dockerfile: Dockerfile
hostname: language-server
restart: on-failure
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.languageserver.rule=Host(`localhost`) && Path(`/`)"
- "traefik.http.routers.languageserver.service=languageserver"
- "traefik.http.services.languageserver.loadbalancer.server.port=30000"
- "traefik.http.routers.languageserver.entrypoints=ws"
- "traefik.http.routers.config.rule=Host(`localhost`) && Path(`/create`)"
- "traefik.http.routers.config.service=config"
- "traefik.http.services.config.loadbalancer.server.port=3000"
- "traefik.http.routers.config.entrypoints=config"
networks:
proxy:
name: proxy