-
Notifications
You must be signed in to change notification settings - Fork 0
/
apps.compose.yaml
59 lines (57 loc) · 1.66 KB
/
apps.compose.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
services:
frontend:
build:
context: frontend
target: build
command: ["npm", "run", "dev", "--", "--host"]
volumes:
- ./frontend:/app
- /app/node_modules
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=PathPrefix(`/`)"
- "traefik.http.routers.frontend.entrypoints=web"
- "traefik.http.services.frontend.loadbalancer.server.port=5173"
networks:
- internal
tasks:
build:
context: backend/tasks
target: build
command: ["gow", "-c", "-e=go,mod,sum,env,toml", "run", "."]
volumes:
- ./backend/tasks:/app
environment:
- MONGODB_URI=mongodb://mongo
- REDIS_URL=redis://redis:6379/0
restart: always
healthcheck:
test:
[
"CMD-SHELL",
"/usr/bin/wget -O- --tries=1 --quiet 127.0.0.1:3000/readyz",
]
start_period: 5s
start_interval: 1s
labels:
- "traefik.enable=true"
- "traefik.http.routers.tasks.rule=PathPrefix(`/api/tasks`)"
- "traefik.http.routers.tasks.entrypoints=web"
- "traefik.http.services.tasks.loadbalancer.server.port=3000"
networks:
- internal
websocket-server:
build:
context: backend/websocket-server
environment:
- REDIS_URL=redis://redis:6379/0
- WEBSOCKET_SERVER_HOST=0.0.0.0
labels:
- "traefik.enable=true"
- "traefik.http.routers.websocket-server.rule=PathPrefix(`/ws`)"
- "traefik.http.routers.websocket-server.entrypoints=web"
- "traefik.http.services.websocket-server.loadbalancer.server.port=8765"
volumes:
- ./backend/websocket-server:/app
networks:
- internal