ajuste docker standalone no readme

This commit is contained in:
Fábio Cavalcanti 2025-01-10 10:27:10 -03:00
parent 943d5be2c8
commit bac9469b05

View File

@ -42,32 +42,42 @@ Antes de começar, certifique-se de ter os seguintes requisitos:
2. Configure o arquivo docker-compose.yaml: 2. Configure o arquivo docker-compose.yaml:
```yaml ```yaml
version: "3.7" version: "3.7"
services:
services:
tcaudio: tcaudio:
image: impacteai/transcrevezap:latest image: impacteai/transcrevezap:latest
build:
context: .
ports: ports:
- 8005:8005 # Porta para FastAPI - 8005:8005 # Porta para FastAPI
- 8501:8501 # Porta para Streamlit - 8501:8501 # Porta para Streamlit
environment: environment:
- REDIS_HOST=redis - UVICORN_PORT=8005
- REDIS_PORT=6380 - UVICORN_HOST=0.0.0.0
- API_DOMAIN=seu-ip - UVICORN_RELOAD=true
- UVICORN_WORKERS=1
- API_DOMAIN=localhost
- DEBUG_MODE=false - DEBUG_MODE=false
- LOG_LEVEL=INFO - LOG_LEVEL=INFO
- MANAGER_USER=admin - MANAGER_USER=admin
- MANAGER_PASSWORD=sua_senha_aqui - MANAGER_PASSWORD=sua_senha_aqui
- REDIS_HOST=redis-transcrevezap
- REDIS_PORT=6380 # Porta personalizada para o Redis do TranscreveZAP
depends_on: depends_on:
- redis - redis-transcrevezap
command: ./start.sh
redis: redis-transcrevezap:
image: redis:6 image: redis:6
command: redis-server --port 6380 --appendonly yes command: redis-server --port 6380 --appendonly yes
volumes: volumes:
- redis_data:/data - redis_transcrevezap_data:/data
volumes:
redis_transcrevezap_data:
driver: local
volumes:
redis_data:
``` ```
3. Inicie os serviços: 3. Inicie os serviços: