deploy: add redis image
All checks were successful
Build and test / Build (push) Successful in 2m19s

This commit is contained in:
Muyao CHEN 2024-10-13 21:11:23 +02:00
parent ca2985abb4
commit 7ff91bab1d

View File

@ -1,7 +1,7 @@
services:
postgres:
image: postgres
image: postgres:alpine
restart: always
ports:
- "5432:5432"
@ -20,3 +20,15 @@ services:
restart: always
ports:
- 8080:8080
redis:
image: redis:alpine
restart: always
ports:
- "6379:6379"
deploy:
mode: replicated
replicas: 1
command: redis-server --save 20 1 --loglevel warning
volumes:
- ../../db_data_howmuch/redis/:/data