1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-19 15:28:06 +02:00

Add hot reload

Signed-off-by: Morten Punnerud Engelstad <morten@punnerud.net>
This commit is contained in:
Morten Punnerud Engelstad 2023-08-06 22:58:28 +02:00
parent e6b1d2755f
commit 115e48cdc5
2 changed files with 4 additions and 1 deletions

View file

@ -6,4 +6,4 @@ def hello():
return "Hello World!"
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8000)
app.run(host='0.0.0.0', port=8000, debug=True)

View file

@ -8,3 +8,6 @@ services:
stop_signal: SIGINT
ports:
- '8000:8000'
#Shared volume to enable hot reload
volumes:
- ./app:/app