-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
53 lines (49 loc) · 1.04 KB
/
Copy pathcompose.yaml
File metadata and controls
53 lines (49 loc) · 1.04 KB
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
services:
client:
build:
context: .
dockerfile: ./app/client/Dockerfile
ports:
- "3001:3001"
environment:
- VITE_BFF_URL=http://server
- VITE_BFF_WS_URL=ws://server
depends_on:
- load-balancer
bff-instance:
build:
context: .
dockerfile: ./app/server/Dockerfile
expose:
- "3000"
environment:
- VALKEY_URL=redis://valkey:6379
- SVC_USERS_URL=https://jsonplaceholder.typicode.com
- BEHIND_PROXY=true
depends_on:
- valkey
deploy:
mode: replicated
replicas: 3
load-balancer:
image: nginx:alpine
ports:
- "3000:80"
volumes:
- ./app/server/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- bff-instance
valkey:
image: wodby/valkey:latest
ports:
- "6379:6379"
background-updates:
image: oven/bun:latest
build:
context: .
dockerfile: ./app/server/bu.Dockerfile
environment:
- VALKEY_URL=redis://valkey:6379
depends_on:
- valkey
- load-balancer