Add base code for REST API using Flask
This commit is contained in:
parent
0be947b3d1
commit
2da6e43797
12 changed files with 266 additions and 14 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue