From b94a89fadc34e6744bb83c541d8f21bdb5ef0e31 Mon Sep 17 00:00:00 2001 From: netlas Date: Wed, 22 Apr 2026 09:59:14 +0300 Subject: [PATCH] chore(docker): Change Redis port from 6379 to 6380 Avoid port conflicts with Gitea (or other services) when both run on same server. Container port remains 6379, host binding changed to 6380. Updated REDIS_URL in .env.example. Update your local .env and server .env accordingly. --- .env.example | 3 ++- docker-compose.production.yaml | 2 +- docker-compose.yaml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 7bb64d392..f574b28e7 100644 --- a/.env.example +++ b/.env.example @@ -38,7 +38,8 @@ ENABLE_ACCOUNT_SIGNUP=false # specify the configs via single URL or individual variables # ref: https://www.iana.org/assignments/uri-schemes/prov/redis # You can also use the following format for the URL: redis://:password@host:port/db_number -REDIS_URL=redis://redis:6379 +# Note: Port 6380 is used instead of default 6379 to avoid conflicts with Gitea if running on same server +REDIS_URL=redis://redis:6380 # If you are using docker-compose, set this variable's value to be any string, # which will be the password for the redis service running inside the docker-compose # to make it secure diff --git a/docker-compose.production.yaml b/docker-compose.production.yaml index ed63769a6..15d460e39 100644 --- a/docker-compose.production.yaml +++ b/docker-compose.production.yaml @@ -56,7 +56,7 @@ services: volumes: - redis_data:/data ports: - - '127.0.0.1:6379:6379' + - '127.0.0.1:6380:6379' volumes: storage_data: diff --git a/docker-compose.yaml b/docker-compose.yaml index ed63769a6..15d460e39 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -56,7 +56,7 @@ services: volumes: - redis_data:/data ports: - - '127.0.0.1:6379:6379' + - '127.0.0.1:6380:6379' volumes: storage_data: