Add base code for REST API using Flask

This commit is contained in:
Lexi / Zoe 2022-03-26 01:07:47 +01:00
parent 0be947b3d1
commit 2da6e43797
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
12 changed files with 266 additions and 14 deletions

View file

@ -9,10 +9,12 @@ services:
# Use an ".env" file to overwrite this variable if your local user's UID is not 1000.
DEV_USER_UID: ${DEV_USER_UID:-1000}
ports:
- '8080:8080'
- '5000:5000'
volumes:
- ./:/app/
command: gunicorn --bind=0.0.0.0:8080 --reload tofu_api.app:app
env_file:
- development.env
command: flask run --host=0.0.0.0
volumes:
mariadb_data: