Commit 676f2cf2 by jpalanca

Uploaded docker-compose file

parent 085e3e42
# WARNING: Do not deploy this tutorial configuration directly to a production environment
#
# The tutorial docker-compose files have not been written for production deployment and will not
# scale. A proper architecture has been sacrificed to keep the narrative focused on the learning
# goals, they are just used to deploy everything onto a single Docker machine. All FIWARE components
# are running at full debug and extra ports have been exposed to allow for direct calls to services.
# They also contain various obvious security flaws - passwords in plain text, no load balancing,
# no use of HTTPS and so on.
#
# This is all to avoid the need of multiple machines, generating certificates, encrypting secrets
# and so on, purely so that a single docker-compose file can be read as an example to build on,
# not use directly.
#
# When deploying to a production environment, please looking at the SmartSDK Recipes
# in order to scale up to a proper architecture:
#
# see: https://smartsdk.github.io/smartsdk-recipes/
#
version: "3.5"
services:
# Orion is the context broker
orion:
image: fiware/orion:2.2.0
hostname: orion
container_name: fiware-orion
depends_on:
- mongo-db
networks:
- default
expose:
- "1026"
ports:
- "1026:1026"
command: -dbhost mongo-db -logLevel DEBUG
healthcheck:
test: curl --fail -s http://orion:1026/version || exit 1
# Quantum Leap is persisting Short Term History to Crate-DB
quantumleap:
image: smartsdk/quantumleap:0.6.1
hostname: quantumleap
container_name: fiware-quantumleap
ports:
- "8668:8668"
depends_on:
- crate-db
environment:
- CRATE_HOST=crate-db
healthcheck:
test: curl --fail -s http://localhost:8668/v2/version || exit 1
# Databases
mongo-db:
image: mongo:3.6
hostname: mongo-db
container_name: db-mongo
expose:
- "27017"
ports:
- "27017:27017"
networks:
- default
command: --bind_ip_all --smallfiles
volumes:
- mongo-db:/data
crate-db:
image: crate:${CRATE_VERSION:-3.1.2}
hostname: crate-db
container_name: db-crate
ports:
# Admin UI
- "4200:4200"
# Transport protocol
- "4300:4300"
command: crate -Clicense.enterprise=false -Cauth.host_based.enabled=false -Ccluster.name=democluster -Chttp.cors.enabled=true -Chttp.cors.allow-origin="*"
volumes:
- crate-db:/data
# Other services
grafana:
image: grafana/grafana:6.1.6
container_name: grafana
depends_on:
- crate-db
ports:
- "3003:3000"
environment:
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-worldmap-panel
volumes:
- grafana:/var/lib/grafana
networks:
default:
ipam:
config:
- subnet: 172.18.1.0/24
volumes:
mongo-db: ~
crate-db: ~
grafana: ~
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment