python_flask_demo
Run the following to setup default configuration files:
- Config file
config.ymlresides insrc/conf - Config with real values is not meant to be uploaded with the source code. Only include
conf/config.template.yml
- Build Web Server and DB container using:
docker-compose -f docker-compose.local.yml up --build. This will build and launch docker containers for local development. - The default
docker-compose.ymlis used for production deployment.
- As of writing this, the database container exposes the postgres port to the local port
20040, so make sure you connect using that port.
- When using VSCode and using
launch.json, make sure you do not put any parameters insideapp.run(), the launch.json file will take precedence in all flask run settings