# Chatc2 — Docker Compose # # Uso: # docker compose up -d (iniciar) # docker compose logs -f chatc2 (ver logs) # docker compose down (parar) # docker compose restart chatc2 (reiniciar) services: # ============================================================ # Firebird 3.0 # ============================================================ firebird: image: jacobalberty/firebird:3.0 container_name: chatc2-firebird environment: ISC_PASSWORD: masterkey FIREBIRD_DATABASE: NOVO.FDB FIREBIRD_USER: SYSDBA FIREBIRD_PASSWORD: masterkey ports: - "3050:3050" volumes: - firebird_data:/firebird/data - ./db/NOVO.FDB:/firebird/data/NOVO.FDB:rw restart: unless-stopped healthcheck: test: ["CMD", "/usr/local/firebird/bin/isql", "-user", "SYSDBA", "-password", "masterkey", "localhost:NOVO.FDB", "-q", "SELECT 1 FROM RDB\$DATABASE;"] interval: 30s timeout: 5s retries: 3 # ============================================================ # Chatc2 App # ============================================================ chatc2: build: . container_name: chatc2-app ports: - "3000:3000" env_file: - .env environment: - DB_HOST=firebird - DB_PORT=3050 - DB_DATABASE=/app/db/NOVO.FDB - LOCAL_URL=http://localhost:3000 volumes: - ./db/NOVO.FDB:/app/db/NOVO.FDB:rw - ./logs:/app/logs - ./uploads:/app/uploads - ./whisper/models:/app/whisper/models:ro depends_on: firebird: condition: service_healthy restart: unless-stopped volumes: firebird_data: