-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-dev.yaml
132 lines (126 loc) · 2.95 KB
/
docker-compose-dev.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: "3.2"
networks:
testnet:
external:
name: testnet
services:
central_server:
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
# placement:
# constraints:
# - node.hostname == your-hostname-2-here
image: presto412/storev1
hostname: nyc.central.com
command: ./node_modules/.bin/nodemon
volumes:
- "/tmp/uploads:/tmp/uploads"
- ".:/usr/src/app/"
environment:
- SELF_HOSTNAME=nyc.central.com
ports:
- "3000:3000"
networks:
testnet:
aliases:
- nyc.central.com
storage_toronto:
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
# placement:
# constraints:
# - node.hostname == harshit-Lenovo-G50-80
image: presto412/storev1
hostname: toronto.storage.com
command: ./node_modules/.bin/nodemon
ports:
- "3001:3000"
environment:
- SELF_HOSTNAME=toronto.storage.com
volumes:
- "/tmp/uploads:/tmp/uploads"
- ".:/usr/src/app/"
networks:
testnet:
aliases:
- toronto.storage.com
storage_singapore:
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
# placement:
# constraints:
# - node.hostname == priyansh-Inspiron-3543
image: presto412/storev1
hostname: singapore.storage.com
command: ./node_modules/.bin/nodemon
ports:
- "3002:3000"
environment:
- SELF_HOSTNAME=singapore.storage.com
volumes:
- "/tmp/uploads:/tmp/uploads"
- ".:/usr/src/app/"
networks:
testnet:
aliases:
- singapore.storage.com
storage_amsterdam:
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
# placement:
# constraints:
# - node.hostname == your-hostname-2-here
image: presto412/storev1
hostname: amsterdam.storage.com
command: ./node_modules/.bin/nodemon
volumes:
- "/tmp/uploads:/tmp/uploads"
- ".:/usr/src/app/"
ports:
- "3003:3000"
environment:
- SELF_HOSTNAME=amsterdam.storage.com
networks:
testnet:
aliases:
- amsterdam.storage.com
storage_bangalore:
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
# placement:
# constraints:
# - node.hostname == priyansh-Inspiron-3543
image: presto412/storev1
command: ./node_modules/.bin/nodemon
hostname: bangalore.storage.com
environment:
- SELF_HOSTNAME=bangalore.storage.com
ports:
- "3004:3000"
volumes:
- "/tmp/uploads:/tmp/uploads"
- ".:/usr/src/app/"
networks:
testnet:
aliases:
- bangalore.storage.com