/
docker-compose-frontend.yml
49 lines (45 loc) · 1.02 KB
/
docker-compose-frontend.yml
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
version: '2'
services:
frontend-1:
image: josdirksen/demo-service
container_name: Frontend1
ports:
- 8090:8090
environment:
- "constraint:node==nb1"
- SERVER_ID=1
- SERVERNAME=Server1
- PORT=8090
command: /entrypoint.sh --type frontend
dns: 192.168.99.106
dns_search: service.consul
frontend-2:
image: josdirksen/demo-service
container_name: Frontend2
ports:
- 8090:8090
environment:
- "constraint:node==nb2"
- SERVER_ID=2
- SERVERNAME=Server2
- PORT=8090
command: /entrypoint.sh --type frontend
dns: 192.168.99.106
dns_search: service.consul
frontend-3:
image: josdirksen/demo-service
container_name: Frontend3
ports:
- 8090:8090
environment:
- "constraint:node==nb3"
- SERVER_ID=3
- SERVERNAME=Server3
- PORT=8090
command: /entrypoint.sh --type frontend
dns: 192.168.99.106
dns_search: service.consul
networks:
default:
external:
name: my-net