-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 947 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 947 Bytes
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
version: '3.8'
services:
nodeapp:
image: csparth/codelashes_node
ports:
- 7700:7700
deploy:
replicas: 4
restart_policy:
condition: on-failure
max_attempts: 3
update_config:
parallelism: 3
delay: 10s
networks:
- balance
proxy:
image: csparth/loadbalancer_nginx
ports:
- 5000:80
depends_on:
- nodeapp
deploy:
placement:
constraints:
- node.role == manager
networks:
- balance
redis:
image: redis/redis-stack:latest
ports:
- "6379:6379" # Redis port
- "8001:8001" # RedisInsight port
volumes:
- redis_data:/data
networks:
- balance
deploy:
replicas: 1
restart_policy:
condition: on-failure
# Removed the worker constraint as it might be causing issues
volumes:
redis_data:
networks:
balance:
driver: overlay