A Sample RESTful API written in Python and uses Flask and Connexion / Swagger as frameworks, PostgreSQL as database, Flask-SQLAlchemy as Object Relational Mapper, Gunicorn as WSGI HTTP Server and Nginx as Proxy Server.
- docker-compose version 1.6.0+
-
Run application and its database with command:
local.sh run
-
accees app through web browser.
local.sh test
All logs inside container are stored under folder /var/log/supervisor. you can print out log file by using docker exec. Example:
docker exec -it api tail -f /var/log/supervisor/gunicorn.stdout.log