-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.1 KB
/
docker-compose.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
50
51
52
53
54
55
56
version: '2'
services:
consul:
image: gliderlabs/consul-server:latest
command: "-bootstrap -client 0.0.0.0"
container_name: consul
hostname: consul
networks:
- microservicesnet
ports:
- 8500:8500
registrator:
image: gliderlabs/registrator:latest
command: "-internal consul://consul:8500"
container_name: registrator
hostname: registrator
networks:
- microservicesnet
depends_on:
- consul
volumes:
- /var/run/docker.sock:/tmp/docker.sock
nodered:
image: ${USER}/node-red
build: ./nodered
networks:
- microservicesnet
environment:
- SERVICE_NAME=node-red
ports:
- "1880:1880"
volumes:
- ${PWD}/nodered/runtime:/root/.node-red
links:
- mosquitto
command: /usr/local/bin/node-red -v flows.json
mosquitto:
image: ${USER}/mosquitto
build: ./mosquitto
networks:
- microservicesnet
environment:
- SERVICE_NAME=mosquitto
volumes:
- ${PWD}/mosquitto/runtime:/etc/mosquitto
ports:
- "1883:1883"
- "9883:9883"
networks:
microservicesnet:
driver: bridge