Skip to content

Commit 2772cb2

Browse files
committed
feat: add Redis configuration and volume to docker-compose
- Update .env.sample with Redis host and port configuration - Add Redis service to docker-compose-prod.yml - Remove unused @jobs/* path mapping in tsconfig.json - Remove deprecated worker.ts file
1 parent 0796c8a commit 2772cb2

File tree

4 files changed

+20
-93
lines changed

4 files changed

+20
-93
lines changed

.env.sample

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ API_INSTANCES=1
1212
# FORMAT: postgresql://{user}:{password}@{host}:{port}/{database}
1313
DATABASE_URL="postgresql://postgres:postgres@remnawave-db:5432/postgres"
1414

15+
### REDIS ###
16+
# FORMAT: redis://{user}:{password}@{host}:{port}/{database}
17+
REDIS_HOST=remnawave-redis
18+
REDIS_PORT=6379
19+
20+
1521
### JWT ###
1622
### CHANGE DEFAULT VALUES ###
1723
JWT_AUTH_SECRET=change_me

docker-compose-prod.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ services:
3838
remnawave-db:
3939
condition: service_healthy
4040

41+
remnawave-redis:
42+
image: valkey/valkey:8.0.2-alpine
43+
container_name: remnawave-redis
44+
hostname: remnawave-redis
45+
restart: always
46+
networks:
47+
- remnawave-network
48+
volumes:
49+
- remnawave-redis-data:/data
50+
4151
networks:
4252
remnawave-network:
4353
name: remnawave-network
@@ -49,3 +59,7 @@ volumes:
4959
driver: local
5060
external: false
5161
name: remnawave-db-data
62+
remnawave-redis-data:
63+
driver: local
64+
external: false
65+
name: remnawave-redis-data

src/worker.ts

Lines changed: 0 additions & 90 deletions
This file was deleted.

tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
"@contract/*": [
2929
"./libs/contract/*"
3030
],
31-
"@jobs/*": [
32-
".wip/jobs/*"
33-
],
3431
"@processors/*": [
3532
"src/processors/*"
3633
],

0 commit comments

Comments
 (0)