Skip to content

Running Abixen Platform on Docker

Mariusz Kumor edited this page Mar 5, 2017 · 1 revision

Get it started

All components can run as docker containers using docker-compose configuration that is included in the project.

Requirements

  • Docker 1.12.1+
  • Docker Compose 1.6.0+
  • 5GB of free memory

Launching containers

Inside project directory go to docker/ and launch it:

docker-compose up -d

This will take a couple of minutes to start and will pull docker images from Docker Hub repository. Make sure that all of containers are up (except base which should remain in Exit 0 state). You can check it with docker-compose ps command. The output should be similar to this one:

$ docker-compose ps
                          Name                                        Command               State                                              Ports                                            
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
docker_base_1                                              /hello                           Exit 0                                                                                              
docker_business-intelligence-service-postgres-database_1   /docker-entrypoint.sh postgres   Up       0.0.0.0:5433->5432/tcp                                                                     
docker_business-intelligence-service_1                     java -Djava.security.egd=f ...   Up                                                                                                  
docker_configuration_1                                     java -Djava.security.egd=f ...   Up       8888/tcp                                                                                   
docker_core-postgres-database_1                            /docker-entrypoint.sh postgres   Up       0.0.0.0:5432->5432/tcp                                                                     
docker_core_1                                              java -Djava.security.egd=f ...   Up                                                                                                  
docker_discovery_1                                         java -Djava.security.egd=f ...   Up       0.0.0.0:8761->8761/tcp                                                                     
docker_elasticsearch_1                                     /docker-entrypoint.sh elas ...   Up       0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp                                             
docker_gateway_1                                           java -Djava.security.egd=f ...   Up       9090/tcp                                                                                   
docker_hystrix-dashboard_1                                 java -Djava.security.egd=f ...   Up       0.0.0.0:8989->8989/tcp                                                                     
docker_kibana_1                                            /docker-entrypoint.sh kibana     Up       0.0.0.0:5601->5601/tcp                                                                     
docker_load-balancer_1                                     /entrypoint.sh --web --doc ...   Up       0.0.0.0:80->80/tcp, 0.0.0.0:8080->8080/tcp                                                 
docker_logstash_1                                          /docker-entrypoint.sh logs ...   Up       0.0.0.0:12201->12201/udp                                                                   
docker_rabbitmq_1                                          docker-entrypoint.sh rabbi ...   Up       15671/tcp, 0.0.0.0:15672->15672/tcp, 25672/tcp, 4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp 
docker_redis_1                                             docker-entrypoint.sh redis ...   Up       6379/tcp                                                                                   
docker_web-client_1                                        java -Djava.security.egd=f ...   Up       0.0.0.0:18080->8080/tcp, 0.0.0.0:9010->9010/tcp                                            
docker_web-content-service-postgres-database_1             /docker-entrypoint.sh postgres   Up       0.0.0.0:5434->5432/tcp                                                                     
docker_web-content-service_1                               java -Djava.security.egd=f ...   Up                                                                                                  
docker_zipkin-web_1                                        java -Djava.security.egd=f ...   Up       0.0.0.0:9412->9412/tcp                                                                     
docker_zipkin_1                                            java -Djava.security.egd=f ...   Up       8888/tcp, 0.0.0.0:9411->9411/tcp         

The containers you may validate also using Docker Kitematic:

Abixe Platform Docker Kitematic

Connect to web interface

Once the all containers got running you can connect to web interface using http://local.platform.abixen.com. If you see 404 Not found errors then you need to wait a little bit longer for component to start.

Cleaning up

You can destroy all of the resources (volumes, containers and networks) created by docker-compose with the following command:

docker-compose down

If you want to also remove database files destroying all the data generated by platform please add -v option:

docker-compose down -v