2018-03-11 18:06:01 +01:00
|
|
|
###
|
|
|
|
# Copyright (c) 2015-2017 Mainflux
|
|
|
|
#
|
|
|
|
# Mainflux is licensed under an Apache license, version 2.0 license.
|
|
|
|
# All rights not explicitly granted in the Apache license, version 2.0 are reserved.
|
|
|
|
# See the included LICENSE file for more details.
|
|
|
|
###
|
|
|
|
|
|
|
|
version: "3"
|
|
|
|
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
mainflux-base-net:
|
|
|
|
driver: bridge
|
|
|
|
|
2019-04-18 17:31:24 +02:00
|
|
|
volumes:
|
|
|
|
mainflux-users-db-volume:
|
|
|
|
mainflux-things-db-volume:
|
|
|
|
mainflux-mqtt-redis-volume:
|
|
|
|
mainflux-things-redis-volume:
|
|
|
|
mainflux-es-redis-volume:
|
|
|
|
|
2018-03-11 18:06:01 +01:00
|
|
|
services:
|
|
|
|
nginx:
|
2019-05-16 11:59:23 +02:00
|
|
|
image: nginx:1.16.0-alpine
|
2018-03-11 18:06:01 +01:00
|
|
|
container_name: mainflux-nginx
|
2018-05-14 13:11:29 +02:00
|
|
|
restart: on-failure
|
2018-03-11 18:06:01 +01:00
|
|
|
volumes:
|
2019-06-24 18:13:02 +00:00
|
|
|
- ./nginx/nginx-${AUTH-key}.conf:/etc/nginx/nginx.conf.template
|
|
|
|
- ./nginx/entrypoint.sh:/entrypoint.sh
|
2019-04-02 17:54:24 +02:00
|
|
|
- ./ssl/authorization.js:/etc/nginx/authorization.js
|
2018-05-17 18:08:16 +05:30
|
|
|
- ./ssl/certs/mainflux-server.crt:/etc/ssl/certs/mainflux-server.crt
|
2019-04-02 17:54:24 +02:00
|
|
|
- ./ssl/certs/ca.crt:/etc/ssl/certs/ca.crt
|
2018-05-17 18:08:16 +05:30
|
|
|
- ./ssl/certs/mainflux-server.key:/etc/ssl/private/mainflux-server.key
|
|
|
|
- ./ssl/dhparam.pem:/etc/ssl/certs/dhparam.pem
|
2018-03-11 18:06:01 +01:00
|
|
|
ports:
|
2018-05-24 15:26:03 +02:00
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
- 8883:8883
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2019-06-24 18:13:02 +00:00
|
|
|
environment:
|
|
|
|
- UI_PORT
|
|
|
|
command: /entrypoint.sh
|
2018-03-11 18:06:01 +01:00
|
|
|
|
|
|
|
nats:
|
2018-10-15 11:05:14 +02:00
|
|
|
image: nats:1.3.0
|
2018-03-11 18:06:01 +01:00
|
|
|
container_name: mainflux-nats
|
2018-05-14 13:11:29 +02:00
|
|
|
restart: on-failure
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2018-03-11 18:06:01 +01:00
|
|
|
|
2018-05-14 13:11:29 +02:00
|
|
|
users-db:
|
2019-06-11 02:14:05 +02:00
|
|
|
image: postgres:10.8-alpine
|
2018-05-14 13:11:29 +02:00
|
|
|
container_name: mainflux-users-db
|
|
|
|
restart: on-failure
|
2018-03-11 18:06:01 +01:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: mainflux
|
|
|
|
POSTGRES_PASSWORD: mainflux
|
2018-05-14 13:11:29 +02:00
|
|
|
POSTGRES_DB: users
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2019-04-18 17:31:24 +02:00
|
|
|
volumes:
|
|
|
|
- mainflux-users-db-volume:/var/lib/postgresql/data
|
2018-03-11 18:06:01 +01:00
|
|
|
|
2018-05-14 13:11:29 +02:00
|
|
|
users:
|
|
|
|
image: mainflux/users:latest
|
|
|
|
container_name: mainflux-users
|
|
|
|
depends_on:
|
|
|
|
- users-db
|
2018-03-16 04:59:13 -04:00
|
|
|
expose:
|
2018-05-14 13:11:29 +02:00
|
|
|
- 8181
|
|
|
|
restart: on-failure
|
|
|
|
environment:
|
2018-11-08 21:22:59 +01:00
|
|
|
MF_USERS_LOG_LEVEL: debug
|
2018-05-14 13:11:29 +02:00
|
|
|
MF_USERS_DB_HOST: users-db
|
|
|
|
MF_USERS_DB_PORT: 5432
|
|
|
|
MF_USERS_DB_USER: mainflux
|
|
|
|
MF_USERS_DB_PASS: mainflux
|
|
|
|
MF_USERS_DB: users
|
|
|
|
MF_USERS_HTTP_PORT: 8180
|
|
|
|
MF_USERS_GRPC_PORT: 8181
|
|
|
|
MF_USERS_SECRET: secret
|
|
|
|
ports:
|
|
|
|
- 8180:8180
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2018-05-14 13:11:29 +02:00
|
|
|
|
2018-05-15 17:13:09 +02:00
|
|
|
things-db:
|
2019-06-11 02:14:05 +02:00
|
|
|
image: postgres:10.8-alpine
|
2018-05-15 17:13:09 +02:00
|
|
|
container_name: mainflux-things-db
|
2018-05-14 13:11:29 +02:00
|
|
|
restart: on-failure
|
2018-03-11 18:06:01 +01:00
|
|
|
environment:
|
2018-05-14 13:11:29 +02:00
|
|
|
POSTGRES_USER: mainflux
|
|
|
|
POSTGRES_PASSWORD: mainflux
|
2018-05-15 17:13:09 +02:00
|
|
|
POSTGRES_DB: things
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2019-04-18 17:31:24 +02:00
|
|
|
volumes:
|
|
|
|
- mainflux-things-db-volume:/var/lib/postgresql/data
|
2018-05-14 13:11:29 +02:00
|
|
|
|
2018-12-04 20:08:30 +01:00
|
|
|
things-redis:
|
|
|
|
image: redis:5.0-alpine
|
|
|
|
container_name: mainflux-things-redis
|
2018-09-04 22:19:43 +02:00
|
|
|
restart: on-failure
|
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2019-04-18 17:31:24 +02:00
|
|
|
volumes:
|
|
|
|
- mainflux-things-redis-volume:/data
|
2018-09-04 22:19:43 +02:00
|
|
|
|
2018-05-15 17:13:09 +02:00
|
|
|
things:
|
|
|
|
image: mainflux/things:latest
|
|
|
|
container_name: mainflux-things
|
2018-05-14 13:11:29 +02:00
|
|
|
depends_on:
|
2018-05-15 17:13:09 +02:00
|
|
|
- things-db
|
2018-05-14 13:11:29 +02:00
|
|
|
- users
|
|
|
|
restart: on-failure
|
|
|
|
environment:
|
2018-11-08 21:22:59 +01:00
|
|
|
MF_THINGS_LOG_LEVEL: debug
|
2018-05-15 17:13:09 +02:00
|
|
|
MF_THINGS_DB_HOST: things-db
|
|
|
|
MF_THINGS_DB_PORT: 5432
|
|
|
|
MF_THINGS_DB_USER: mainflux
|
|
|
|
MF_THINGS_DB_PASS: mainflux
|
|
|
|
MF_THINGS_DB: things
|
2018-12-04 20:08:30 +01:00
|
|
|
MF_THINGS_CACHE_URL: things-redis:6379
|
2019-04-17 12:39:47 +02:00
|
|
|
MF_THINGS_ES_URL: es-redis:6379
|
2018-05-15 17:13:09 +02:00
|
|
|
MF_THINGS_HTTP_PORT: 8182
|
|
|
|
MF_THINGS_GRPC_PORT: 8183
|
2018-05-14 13:11:29 +02:00
|
|
|
MF_USERS_URL: users:8181
|
2018-05-15 17:13:09 +02:00
|
|
|
MF_THINGS_SECRET: secret
|
2018-05-14 13:11:29 +02:00
|
|
|
ports:
|
|
|
|
- 8182:8182
|
2018-11-06 14:09:17 -06:00
|
|
|
- 8183:8183
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2018-03-11 18:06:01 +01:00
|
|
|
|
|
|
|
normalizer:
|
|
|
|
image: mainflux/normalizer:latest
|
|
|
|
container_name: mainflux-normalizer
|
2018-05-14 13:11:29 +02:00
|
|
|
restart: on-failure
|
2018-06-15 16:27:23 +02:00
|
|
|
depends_on:
|
|
|
|
- nats
|
2018-03-16 04:59:13 -04:00
|
|
|
expose:
|
2018-05-14 17:21:06 +02:00
|
|
|
- 8184
|
2018-03-11 18:06:01 +01:00
|
|
|
environment:
|
2018-11-08 21:22:59 +01:00
|
|
|
MF_NORMALIZER_LOG_LEVEL: debug
|
2018-05-14 13:11:29 +02:00
|
|
|
MF_NATS_URL: nats://nats:4222
|
2018-05-14 17:21:06 +02:00
|
|
|
MF_NORMALIZER_PORT: 8184
|
2019-01-21 09:28:50 +01:00
|
|
|
ports:
|
|
|
|
- 8184:8184
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2018-03-11 18:06:01 +01:00
|
|
|
|
2019-03-06 16:21:09 +01:00
|
|
|
ui:
|
|
|
|
image: mainflux/ui:latest
|
|
|
|
container_name: mainflux-ui
|
2018-05-24 15:26:03 +02:00
|
|
|
restart: on-failure
|
|
|
|
ports:
|
2019-06-24 18:13:02 +00:00
|
|
|
- ${UI_PORT}:${UI_PORT}
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2019-06-24 18:13:02 +00:00
|
|
|
environment:
|
|
|
|
- UI_PORT
|
2018-05-24 15:26:03 +02:00
|
|
|
|
2018-05-14 17:21:06 +02:00
|
|
|
ws-adapter:
|
2018-05-14 13:11:29 +02:00
|
|
|
image: mainflux/ws:latest
|
|
|
|
container_name: mainflux-ws
|
|
|
|
depends_on:
|
2018-05-15 17:13:09 +02:00
|
|
|
- things
|
2018-06-15 16:27:23 +02:00
|
|
|
- nats
|
2018-05-14 13:11:29 +02:00
|
|
|
restart: on-failure
|
2018-03-11 18:06:01 +01:00
|
|
|
environment:
|
2018-11-08 21:22:59 +01:00
|
|
|
MF_WS_ADAPTER_LOG_LEVEL: debug
|
2018-05-14 17:21:06 +02:00
|
|
|
MF_WS_ADAPTER_PORT: 8186
|
2018-05-14 13:11:29 +02:00
|
|
|
MF_NATS_URL: nats://nats:4222
|
2018-05-15 17:13:09 +02:00
|
|
|
MF_THINGS_URL: things:8183
|
2018-05-14 13:11:29 +02:00
|
|
|
ports:
|
2018-05-14 17:21:06 +02:00
|
|
|
- 8186:8186
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2018-03-11 18:06:01 +01:00
|
|
|
|
2018-05-14 13:11:29 +02:00
|
|
|
http-adapter:
|
|
|
|
image: mainflux/http:latest
|
|
|
|
container_name: mainflux-http
|
2018-03-11 18:06:01 +01:00
|
|
|
depends_on:
|
2018-05-15 17:13:09 +02:00
|
|
|
- things
|
2018-06-15 16:27:23 +02:00
|
|
|
- nats
|
2018-05-14 13:11:29 +02:00
|
|
|
restart: on-failure
|
2018-11-06 14:09:17 -06:00
|
|
|
expose:
|
|
|
|
- 8185
|
2018-03-11 18:06:01 +01:00
|
|
|
environment:
|
2018-11-08 21:22:59 +01:00
|
|
|
MF_HTTP_ADAPTER_LOG_LEVEL: debug
|
2018-05-14 13:11:29 +02:00
|
|
|
MF_HTTP_ADAPTER_PORT: 8185
|
|
|
|
MF_NATS_URL: nats://nats:4222
|
2018-05-15 17:13:09 +02:00
|
|
|
MF_THINGS_URL: things:8183
|
2018-03-16 13:52:51 +01:00
|
|
|
ports:
|
2018-05-14 13:11:29 +02:00
|
|
|
- 8185:8185
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2018-05-20 09:29:19 +02:00
|
|
|
|
2019-04-17 12:39:47 +02:00
|
|
|
es-redis:
|
|
|
|
image: redis:5.0-alpine
|
|
|
|
container_name: mainflux-es-redis
|
|
|
|
restart: on-failure
|
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2019-04-18 17:31:24 +02:00
|
|
|
volumes:
|
|
|
|
- mainflux-es-redis-volume:/data
|
2019-04-17 12:39:47 +02:00
|
|
|
|
2019-04-05 11:25:39 +02:00
|
|
|
mqtt-redis:
|
|
|
|
image: redis:5.0-alpine
|
|
|
|
container_name: mainflux-mqtt-redis
|
2018-06-15 16:27:23 +02:00
|
|
|
restart: on-failure
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2019-04-18 17:31:24 +02:00
|
|
|
volumes:
|
|
|
|
- mainflux-mqtt-redis-volume:/data
|
2018-06-15 16:27:23 +02:00
|
|
|
|
2018-05-20 09:29:19 +02:00
|
|
|
mqtt-adapter:
|
|
|
|
image: mainflux/mqtt:latest
|
|
|
|
container_name: mainflux-mqtt
|
|
|
|
depends_on:
|
|
|
|
- things
|
2018-06-15 16:27:23 +02:00
|
|
|
- nats
|
2019-04-05 11:25:39 +02:00
|
|
|
- mqtt-redis
|
2018-05-20 09:29:19 +02:00
|
|
|
restart: on-failure
|
|
|
|
environment:
|
2018-11-08 21:22:59 +01:00
|
|
|
MF_MQTT_ADAPTER_LOG_LEVEL: debug
|
2019-04-05 11:25:39 +02:00
|
|
|
MF_MQTT_INSTANCE_ID: mqtt-adapter-1
|
2018-05-20 09:29:19 +02:00
|
|
|
MF_MQTT_ADAPTER_PORT: 1883
|
2018-11-08 19:29:58 +01:00
|
|
|
MF_MQTT_ADAPTER_WS_PORT: 8880
|
2019-04-05 11:25:39 +02:00
|
|
|
MF_MQTT_ADAPTER_REDIS_HOST: mqtt-redis
|
2019-04-17 12:39:47 +02:00
|
|
|
MF_MQTT_ADAPTER_ES_HOST: es-redis
|
2018-05-20 09:29:19 +02:00
|
|
|
MF_NATS_URL: nats://nats:4222
|
|
|
|
MF_THINGS_URL: things:8183
|
|
|
|
ports:
|
|
|
|
- 1883:1883
|
2018-05-24 15:26:03 +02:00
|
|
|
- 8880:8880
|
2018-08-06 17:06:55 +02:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|
2018-10-31 18:53:25 +01:00
|
|
|
|
|
|
|
coap-adapter:
|
|
|
|
image: mainflux/coap:latest
|
|
|
|
container_name: mainflux-coap
|
|
|
|
depends_on:
|
|
|
|
- things
|
|
|
|
- nats
|
|
|
|
restart: on-failure
|
|
|
|
environment:
|
2018-11-08 21:22:59 +01:00
|
|
|
MF_COAP_ADAPTER_LOG_LEVEL: debug
|
2018-10-31 18:53:25 +01:00
|
|
|
MF_COAP_ADAPTER_PORT: 5683
|
|
|
|
MF_NATS_URL: nats://nats:4222
|
|
|
|
MF_THINGS_URL: things:8183
|
|
|
|
ports:
|
2019-02-20 04:47:13 +05:30
|
|
|
- 5683:5683/udp
|
2018-10-31 18:53:25 +01:00
|
|
|
networks:
|
|
|
|
- mainflux-base-net
|