Added docker network and additions to README.md · Tech-With-Tim/API@06a61dd · GitHub
Skip to content

Commit 06a61dd

Browse files
committed
Added docker network and additions to README.md
1 parent a08db77 commit 06a61dd

3 files changed

Lines changed: 35 additions & 6 deletions

File tree

‎README.md‎

Lines changed: 16 additions & 3 deletions

‎api/app.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import config
1212

1313

14-
log = logging.getLogger()
14+
log = logging.getLogger(__name__)
1515

1616
app = FastAPI(
1717
title="Tech With Tim",
@@ -50,6 +50,11 @@ async def on_startup():
5050
redis.pool = Redis.from_url(redis_uri)
5151
else:
5252
redis.pool = FakeRedis()
53+
log.warning(
54+
"\n"
55+
" > Created FakeRedis server, using a real redis server is suggested.\n"
56+
" > You can launch a local one using `docker compose up redis` and providing the url in env."
57+
)
5358

5459

5560
@app.on_event("shutdown")

‎docker-compose.yml‎

Lines changed: 13 additions & 2 deletions

0 commit comments

Comments
 (0)