Skip to content

Commit

Permalink
feat: added redis to docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Jun 18, 2024
1 parent d3e4d70 commit 14ebaad
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
version: "3"
version: "3.8"

services:
redis:
image: redis:6.2-alpine
restart: always
ports:
- "6380:6379"
volumes:
- ./data:/data

database:
restart: unless-stopped
image: postgres:15
Expand Down Expand Up @@ -30,15 +38,13 @@ services:
JWT_SECRET: replace_in_production_with_actual_secret
JWT_EXPIRATION_PERIOD_SECONDS: 3600
API_GQL_ENDPOINT: "http://localhost:3000"
REDIS_TLS_URL: "redis://redis:6379"
PORT: 3000
healthcheck:
test: ["CMD-SHELL", "curl --fail http://api:3000/healthz || exit 1"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
database:
condition: service_healthy
redis:
condition: service_started

frontend:
restart: unless-stopped
Expand All @@ -51,8 +57,7 @@ services:
expose:
- 3000
depends_on:
api:
condition: service_healthy
- api

wundergraph:
platform: linux/amd64
Expand Down

0 comments on commit 14ebaad

Please sign in to comment.