From 797a804cda387e62a463087ae734654115c281d4 Mon Sep 17 00:00:00 2001 From: Drasko DRASKOVIC Date: Thu, 28 Apr 2016 23:36:20 +0200 Subject: [PATCH] Use microservices Signed-off-by: Drasko DRASKOVIC --- docker-compose.yml | 50 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 45 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index a563a43b..c2ae4467 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,15 +25,55 @@ nats: - "8333:8333" ### -# Mainflux +# Mainflux Core Server ### -mainflux: - image: mainflux/mainflux-lite:latest - container_name: mainflux-api +mainflux-core: + image: mainflux/mainflux-core-server:latest + container_name: mainflux-core volumes: - - ./config:/mainflux/config + - ./config/core:/mainflux/config links: - mongo - nats + ports: + - "6969:6969" + +### +# Mainflux HTTP Server +### +mainflux-http: + image: mainflux/mainflux-http-server:latest + container_name: mainflux-http + volumes: + - ./config/http:/mainflux-http/config + links: + - nats ports: - "7070:7070" + +### +# Mainflux MQTT Server +### +mainflux-mqtt: + image: mainflux/mainflux-mqtt-server:latest + container_name: mainflux-mqtt + volumes: + - ./config/mqtt:/mainflux-mqtt/config + links: + - nats + ports: + - "1883:1883" + +### +# Mainflux WS Server +### +mainflux-ws: + image: mainflux/mainflux-ws-server:latest + container_name: mainflux-ws + volumes: + - ./config/ws:/mainflux-ws/config + links: + - nats + ports: + - "9090:9090" +