-
create
.env
file in theprocessing
directory. and set environment variables for application:touch .env echo DATABASE_URL=postgresql://postgres:password@db:5432/vending >> .env
-
Then in
processing
directory use command for change this file permission.chmod +x db/01-init.sh
-
run application
docker-compose up
-
Application will be available on
localhost
in your browser.http://localhost:8000/docs
All routes are available on /docs
or /redoc
paths with Swagger or ReDoc.
- start application on docker
docker-compose up
- open new command line tab and exec in processing_vending container
docker exec -ti processing_vending_1 bash
- in code directory run command for run tests
pytest