feat: add redis cache
This commit is contained in:
19
docker-compose.yaml
Normal file
19
docker-compose.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
redis:
|
||||
container_name: gallery-redis
|
||||
image: redis:alpine
|
||||
stop_grace_period: 3s
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
command: [ "redis-server", "--bind", "0.0.0.0", "--port", "6379" ]
|
||||
app:
|
||||
container_name: gallery-app
|
||||
build: .
|
||||
# image: shmyga/gallery
|
||||
environment:
|
||||
- REDIS_HOST=redis
|
||||
ports:
|
||||
- 8000:80
|
||||
|
||||
volumes:
|
||||
redis_data:
|
||||
Reference in New Issue
Block a user