49 lines
1 KiB
YAML
49 lines
1 KiB
YAML
# Desarrollo local: solo PostgreSQL y Redis
|
|
# Uso: docker-compose -f docker-compose.dev.yml up -d
|
|
# Backend y frontend se ejecutan con npm (npm run dev) en tu máquina.
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: emerges-tes-postgres-dev
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: emerges_tes
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_dev_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres -d emerges_tes"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 5
|
|
networks:
|
|
- dev
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: emerges-tes-redis-dev
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_dev_data:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 5
|
|
networks:
|
|
- dev
|
|
|
|
volumes:
|
|
postgres_dev_data:
|
|
redis_dev_data:
|
|
|
|
networks:
|
|
dev:
|
|
driver: bridge
|