This README would normally document whatever steps are necessary to get your application up and running.
#!shell
mkdir fulbito && cd fulbito
#!shell
git clone [email protected]:fulbito/fulbito-docker.git
git clone [email protected]:fulbito/fulbito-core.git
git clone [email protected]:fulbito/fulbito-frontend.git
#!shell
cd fulbito-docker
vagran up
vagrant ssh
cd /fulbito/fulbito-docker/fulbito-base
docker build -t fulbito/fulbito-base .
cd /fulbito/fulbito-docker/cassandra-base
docker build -t fulbito/cassandra-base .
#!shell
cd /fulbito/fulbito-docker
docker-compose build
#!shell
docker-compose up [-d]
use -d option to run in detached mode
Add 192.168.92.8 fulbito-dev.com to /etc/hosts in your host machine
check services
http://fulbito-dev.com/ -> rest app
fulbito-dev.com:3306 -> mysql
This project is used to recreate the whole development environment used for fulbito, it need few services each one live into a container. The services used are:
Each services is a docker container and we use docker-compose to organize this dockerized applications. The main container is web it is the rest application and use db, and cassandra instance to work, db and mongo db are linked to web so when we start the web container db and cassandra are started and linked to web.
Compose is a tool for defining and running complex applications with Docker. With Compose, you define a multi-container >application in a single file, then spin your application up in a single command which does everything that needs to be done >to get it running.
The containers that need persistent data like db or mongodb use a volumes container, volumes container are containers that only exist with the intention of link a host folder where the persistent files are stored into a container. So when the mysqld or mongodb container will destroyed the related data is kept by the host. In our case the folder for persistent data is /volumes
Is not good idea development frontend project into docker frontend container so i recommend not use it. Is better if you use your host machine to do it. See the docker frontend project to starting with.
remember that docker-compose command runs on /fulbito/fulbito-docker
To omit start frontend container use.
#!shell
docker-compose up [-d]
We can't login to containers by ssh so to use the bin/bash into any container we need start it with bin/bash as service. for instance to run bin/bash in web container we need.
#!shell
docker-compose stop web
#!shell
docker-compose run --service-port web /bin/bash
to see logs from all running containers use
#!shell
docker-compose logs
for specific
#!shell
docker-compose logs web
#!shell
docker-compose ps
#!shell
docker-compose stop
#!shell
docker-compose run web env
#!shell
docker rm $(docker ps -a -q)
Content type
Image
Digest
Size
243.3 MB
Last updated
over 9 years ago
docker pull fulbito/fulbito-python