FloorVisualizer/docker-compose.dev.yml

35 lines
776 B
YAML
Raw Permalink Normal View History

# Development compose — starts only DB + Redis, run app locally
services:
db:
image: postgres:15
container_name: floorviz_dev_db
restart: unless-stopped
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=dev123456
- POSTGRES_DB=floorvisualizer
volumes:
- floor_dev_db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: floorviz_dev_redis
restart: unless-stopped
ports:
- "6380:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
floor_dev_db: