Note: make sure docker and docker-compose are installed
Build the containers
sh scripts/docker_build.sh build
Run the containers
sh scripts/docker_build.sh up
or build and run with a single command
sh scripts/docker_build.sh up --build
Open your web browser and view the application using the following urls
API Docs: localhost:8001
Kibana: localhost:5601
Note: all docker-compose commands works after the script
Eg: kill
, stop
, --no-cache
etc.
sh scripts/docker_build.sh down
sh scripts/docker_build.sh kill
sh scripts/docker_build.sh build --no-cache
sh scripts/docker_build.sh run -d
To run unit tests
> docker-compose -f ./docker-compose-ci.yml build
> docker-compose -f ./docker-compose-ci.yml run app
Make sure the containers are up and running, then execute
> docker exec -it stock_api bash
/var/app# python quick_test_seeding.py