Skip to content

Commit afa61d0

Browse files
committed
Add redis to docker-compose for backend cache
1 parent d97aeaf commit afa61d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker-compose.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ services:
1515
- "127.0.0.1:8060:8060"
1616
privileged: true
1717

18+
redis:
19+
image: redis:latest
20+
ports:
21+
- "127.0.0.1:6379:6379"
22+
1823
backend:
1924
image: ghcr.io/python-discord/forms-backend
2025
command: ["uvicorn", "--reload", "--host", "0.0.0.0", "backend:app"]
2126
depends_on:
2227
- mongo
2328
- snekbox
29+
- redis
2430
ports:
2531
- "127.0.0.1:8000:8000"
2632
environment:
@@ -31,6 +37,7 @@ services:
3137
- ALLOWED_URL
3238
- DEBUG=true
3339
- PRODUCTION=false
40+
- REDIS_URL=redis://redis:6379
3441
env_file:
3542
- .env
3643

0 commit comments

Comments
 (0)