Deployment¶
tldr
or
Dockerfile¶
To build a docker image, simply run:
Then to run the application:
Make sure that the database is running and your .env file contains correct connection string.
docker-compose¶
If you wish to start the app as well as the database, use the docker-compose.yml file. Make sure that your .env file contains following variables:
MARIADB_USERNAME- sql usernameMARIADB_PASSWORD- sql user passwordDB_NAME- name of the databaseDB_DATA- absolute path to where the database data should be savedSQLALCHEMY_DATABASE_URIequal tomysql+pymysql://$MARIADB_USERNAME:$MARIADB_PASSWORD@db:3306/$DB_NAME
To run the application, simply run: