Skip to content

Commit bd20e67

Browse files
philvarnermoradology
authored andcommitted
enable hot-reloading for apps
1 parent 66c37cb commit bd20e67

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ make docker-run-sqlalchemy
8181

8282
The application will be started on <http://localhost:8080>.
8383

84+
By default, the apps are run with uvicorn hot-reloading enabled. This can be turned off by changing the value
85+
of the `RELOAD` env var in docker-compose.yml to `false`.
86+
8487
#### Note to Docker for Windows users
8588

8689
You'll need to enable experimental features on Docker for Windows in order to run the docker-compose,

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
environment:
1111
- APP_HOST=0.0.0.0
1212
- APP_PORT=8081
13-
- RELOAD=false
13+
- RELOAD=true
1414
- ENVIRONMENT=local
1515
- POSTGRES_USER=username
1616
- POSTGRES_PASS=password
@@ -36,7 +36,7 @@ services:
3636
environment:
3737
- APP_HOST=0.0.0.0
3838
- APP_PORT=8082
39-
- RELOAD=false
39+
- RELOAD=true
4040
- ENVIRONMENT=local
4141
- POSTGRES_USER=username
4242
- POSTGRES_PASS=password

0 commit comments

Comments
 (0)