ResourceHub API. Not for production. Get/Post, Json Serialize/Deserialize
This commit is contained in:
15
ResourceHub/Database/docker-compose.yml
Normal file
15
ResourceHub/Database/docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
services:
|
||||
cache:
|
||||
image: redis:7.4-alpine
|
||||
restart: always
|
||||
ports:
|
||||
- "${REDIS_PORT}:6379" # port_on_public:port_in_docker_container
|
||||
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
|
||||
volumes:
|
||||
- cache:/data
|
||||
environment:
|
||||
- REDIS_PASSWORD=${REDIS_PASSWORD} # Optional, if you will use it in the container
|
||||
- REDIS_PORT=${REDIS_PORT}
|
||||
volumes:
|
||||
cache:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user