store redis data, move production docker data dir

feat/api
Lea 2023-06-29 23:15:24 +02:00
parent 28b1aa92e3
commit a137a2879c
2 changed files with 6 additions and 2 deletions

View File

@ -17,6 +17,8 @@ services:
redis:
image: eqalpha/keydb
restart: "no"
volumes:
- ./.private/redis:/data:rw
ports:
# Don't do this in production; We didn't set any authentication credentials
- 127.0.0.1:6379:6379

View File

@ -1,4 +1,4 @@
version: '3.1'
version: "3.1"
services:
bot:
@ -24,8 +24,10 @@ services:
ports:
- 127.0.0.1:27017:27017
volumes:
- ./db:/data/db:rw
- ./db/mongodb:/data/db:rw
redis:
image: eqalpha/keydb
restart: always
volumes:
- ./db/redis:/data:rw