-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
60 lines (60 loc) · 1.06 KB
/
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
60
services:
frontend:
restart: always
build:
context: .
ports:
- 3000-3001:3000
deploy:
mode: replicated
replicas: 2
endpoint_mode: vip
develop:
watch:
- action: sync
path: ./
target: /app
ignore:
- node_modules
- server
- action: rebuild
path: package.json
depends_on:
- backend
networks:
- frontend
backend:
restart: always
build:
context: ./server
ports:
- 4000:4000
develop:
watch:
- action: sync
path: ./server
target: /app
ignore:
- node_modules
depends_on:
- database
networks:
- frontend
- backend
database:
restart: always
image: redis/redis-stack:latest
environment:
- REDIS_ARGS=--save 60 1000 --appendonly yes
ports:
- 6379:6379
- 8001:8001
networks:
- backend
volumes:
- redis_data:/data
volumes:
redis_data:
networks:
frontend:
backend: