docker-compose: add volumes

This commit is contained in:
vchikalkin 2025-08-26 20:57:06 +03:00
parent bcb9be88df
commit 49b84382e4
2 changed files with 10 additions and 2 deletions

View File

@ -34,3 +34,8 @@ services:
timeout: 10s
retries: 3
start_period: 30s
volumes:
redis-data:

View File

@ -5,7 +5,7 @@ services:
- .env
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
test: ['CMD', 'curl', '-f', 'http://localhost:3000/']
interval: 10s
timeout: 3s
retries: 5
@ -22,7 +22,7 @@ services:
- redis
networks:
- app
redis:
image: redis:8-alpine
restart: always
@ -46,6 +46,9 @@ services:
retries: 3
start_period: 30s
volumes:
redis-data:
networks:
app:
external: true