aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-07-16 19:02:41 +0100
committerGravatar Chris Lovering <[email protected]>2024-07-16 19:02:53 +0100
commitafa61d0844eb0aea3b7206c00509688965d50735 (patch)
tree9020fbeffbebeb614c7477989d4035340f75f1ed
parentOnly bind to loop back address, rather than all interfaces (diff)
Add redis to docker-compose for backend cache
-rw-r--r--docker-compose.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 1f5d60e..fadafd3 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -15,12 +15,18 @@ services:
- "127.0.0.1:8060:8060"
privileged: true
+ redis:
+ image: redis:latest
+ ports:
+ - "127.0.0.1:6379:6379"
+
backend:
image: ghcr.io/python-discord/forms-backend
command: ["uvicorn", "--reload", "--host", "0.0.0.0", "backend:app"]
depends_on:
- mongo
- snekbox
+ - redis
ports:
- "127.0.0.1:8000:8000"
environment:
@@ -31,6 +37,7 @@ services:
- ALLOWED_URL
- DEBUG=true
- PRODUCTION=false
+ - REDIS_URL=redis://redis:6379
env_file:
- .env