Files required to create the images available at Docker Hub https://hub.docker.com/r/openbankproject/
$ docker build --no-cache -f Dockerfile.obp-base -t openbankproject/obp-base .
$ docker build --no-cache -f Dockerfile.obp-api -t openbankproject/obp-api .
$ docker run -d -p 8080:8080 \
-e "OBP_API_HOSTNAME=http://127.0.0.1:8080" \
openbankproject/obp-api
$ docker build --no-cache -f Dockerfile.obp-full -t openbankproject/obp-full .
$ docker run -d -p 8080-8082:8080-8082 \
-e "OBP_API_HOSTNAME=http://127.0.0.1:8080" \
-e "OBP_BASE_URL_API_EXPLORER=http://localhost:8082" \
-e "OBP_BASE_URL_SOCIAL_FINANCE=http://localhost:8081" \
-e "OBP_WEBUI_API_EXPLORER_URL=http://localhost:8082" \
openbankproject/obp-full
$ docker build --no-cache -f Dockerfile.obp-full-kafka -t openbankproject/obp-full-kafka .
$ docker run -d -p 8080-8082:8080-8082 -p 9092:9092 -p 2181:2181 \
-e "ADVERTISED_HOST=localhost" \
-e "OBP_API_HOSTNAME=http://127.0.0.1:8080" \
-e "OBP_BASE_URL_API_EXPLORER=http://localhost:8082" \
-e "OBP_BASE_URL_SOCIAL_FINANCE=http://localhost:8081" \
-e "OBP_WEBUI_API_EXPLORER_URL=http://localhost:8082" \
openbankproject/obp-full-kafka
Docker compose is used to orchestrate the services. The docker images for api, apiexplorer, sofi and postgres are built separately. Using docker compose the services can be run together.
To run the services using docker compose, run the following commands.
$ cd compose
$ docker-compose up