- Fix docker-compose.dev.yml to use development targets instead of production - Update dev:full task to properly build containers and start all services - Add dev:clean task for environment cleanup - Add dev:audio-debug task for focused audio debugging - Enhance audio service with development mode detection and debugging - Update DEV_SERVICES to include web service These changes resolve issues with glitchy audio playback in development by: 1. Using proper development targets with hot reload 2. Ensuring proper build steps before starting services 3. Adding debugging capabilities for audio issues 4. Providing better development environment management
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
services:
|
|
db:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_DB: ${POSTGRES_DB:-rehearsalhub}
|
|
POSTGRES_USER: ${POSTGRES_USER:-rh_user}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-default_secure_password}
|
|
volumes:
|
|
- pg_data_dev:/var/lib/postgresql/data
|
|
networks:
|
|
- rh_net
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-rh_user} -d ${POSTGRES_DB:-rehearsalhub} || exit 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 20
|
|
start_period: 20s
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
networks:
|
|
- rh_net
|
|
|
|
api:
|
|
build:
|
|
context: ./api
|
|
target: development
|
|
environment:
|
|
DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-rh_user}:${POSTGRES_PASSWORD:-default_secure_password}@db:5432/${POSTGRES_DB:-rehearsalhub}
|
|
NEXTCLOUD_URL: ${NEXTCLOUD_URL:-https://cloud.example.com}
|
|
NEXTCLOUD_USER: ${NEXTCLOUD_USER:-rh_service}
|
|
NEXTCLOUD_PASS: ${NEXTCLOUD_PASS:-default_password}
|
|
REDIS_URL: redis://redis:6379/0
|
|
SECRET_KEY: ${SECRET_KEY:-replace_me_with_32_byte_hex_default}
|
|
INTERNAL_SECRET: ${INTERNAL_SECRET:-replace_me_with_32_byte_hex_default}
|
|
DOMAIN: localhost
|
|
ports:
|
|
- "8000:8000"
|
|
networks:
|
|
- rh_net
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
|
|
web:
|
|
build:
|
|
context: ./web
|
|
target: development
|
|
environment:
|
|
API_URL: http://api:8000
|
|
ports:
|
|
- "3001:80"
|
|
networks:
|
|
- rh_net
|
|
depends_on:
|
|
- api
|
|
|
|
networks:
|
|
rh_net:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
pg_data_dev:
|