feat: add redis to docker compose
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
# env files (can opt-in for committing if needed)
|
# env files (can opt-in for committing if needed)
|
||||||
/apps/web/.env*
|
/apps/web/.env*
|
||||||
/apps/web/.env.example
|
!/apps/web/.env.example
|
||||||
|
|
||||||
# typescript
|
# typescript
|
||||||
/apps/web/next-env.d.ts
|
/apps/web/next-env.d.ts
|
@ -9,3 +9,7 @@ NEXTAUTH_SECRET=your-secret-key-here
|
|||||||
|
|
||||||
# Development Environment
|
# Development Environment
|
||||||
NODE_ENV=development
|
NODE_ENV=development
|
||||||
|
|
||||||
|
# Redis
|
||||||
|
UPSTASH_REDIS_REST_URL=http://localhost:8079
|
||||||
|
UPSTASH_REDIS_REST_TOKEN=example_token
|
@ -10,6 +10,17 @@ services:
|
|||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
|
redis:
|
||||||
|
image: redis
|
||||||
|
ports:
|
||||||
|
- "6379:6379"
|
||||||
|
serverless-redis-http:
|
||||||
|
ports:
|
||||||
|
- "8079:80"
|
||||||
|
image: hiett/serverless-redis-http:latest
|
||||||
|
environment:
|
||||||
|
SRH_MODE: env
|
||||||
|
SRH_TOKEN: example_token
|
||||||
|
SRH_CONNECTION_STRING: "redis://redis:6379"
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
Reference in New Issue
Block a user