diff options
| author | 3raphat <96657413+3raphat@users.noreply.github.com> | 2025-06-23 15:12:34 +0700 |
|---|---|---|
| committer | 3raphat <96657413+3raphat@users.noreply.github.com> | 2025-06-23 15:12:34 +0700 |
| commit | 084ec47249f81ebf180557adb6fdf7f55ba61668 (patch) | |
| tree | fc7bb7afcb91740faf88d845b5e8b9a9717eb6e4 | |
| parent | e45e7e9f9d18f0ca368b92a24b0580f42c4be80d (diff) | |
| download | opencut-084ec47249f81ebf180557adb6fdf7f55ba61668.tar.gz | |
feat: add redis to docker compose
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | apps/web/.env.example (renamed from apps/web/env.example) | 6 | ||||
| -rw-r--r-- | docker-compose.yaml | 13 |
3 files changed, 18 insertions, 3 deletions
@@ -14,7 +14,7 @@ # env files (can opt-in for committing if needed) /apps/web/.env* -/apps/web/.env.example +!/apps/web/.env.example # typescript /apps/web/next-env.d.ts
\ No newline at end of file diff --git a/apps/web/env.example b/apps/web/.env.example index ef5544ad..a3d399b1 100644 --- a/apps/web/env.example +++ b/apps/web/.env.example @@ -8,4 +8,8 @@ NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_SECRET=your-secret-key-here # Development Environment -NODE_ENV=development
\ No newline at end of file +NODE_ENV=development + +# Redis +UPSTASH_REDIS_REST_URL=http://localhost:8079 +UPSTASH_REDIS_REST_TOKEN=example_token
\ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 47032230..0c3ef30c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -10,6 +10,17 @@ services: - postgres_data:/var/lib/postgresql/data ports: - "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: postgres_data: |
