CoolFace
Apppublic

WebashalarForML/scratch_chat

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
docker-compose.dev.yml71 linesDownload Raw Back to root
1version: '3.8'2 3services:4  # Development version with hot reload5  chat-agent-dev:6    build:7      context: .8      dockerfile: Dockerfile.dev9    ports:10      - "7860:7860"11    environment:12      - FLASK_ENV=development13      - FLASK_DEBUG=True14      - DATABASE_URL=postgresql://chatuser:chatpass@postgres:5432/chat_agent_dev15      - REDIS_URL=redis://redis:6379/016    depends_on:17      postgres:18        condition: service_healthy19      redis:20        condition: service_healthy21    volumes:22      - .:/app23      - /app/__pycache__24      - ./logs:/app/logs25    restart: unless-stopped26    networks:27      - chat-network28 29  # PostgreSQL database for development30  postgres:31    image: postgres:15-alpine32    environment:33      POSTGRES_DB: chat_agent_dev34      POSTGRES_USER: chatuser35      POSTGRES_PASSWORD: chatpass36    volumes:37      - postgres_dev_data:/var/lib/postgresql/data38    ports:39      - "5432:5432"40    healthcheck:41      test: ["CMD-SHELL", "pg_isready -U chatuser -d chat_agent_dev"]42      interval: 10s43      timeout: 5s44      retries: 545    restart: unless-stopped46    networks:47      - chat-network48 49  # Redis for development50  redis:51    image: redis:7-alpine52    ports:53      - "6379:6379"54    volumes:55      - redis_dev_data:/data56    healthcheck:57      test: ["CMD", "redis-cli", "ping"]58      interval: 10s59      timeout: 5s60      retries: 561    restart: unless-stopped62    networks:63      - chat-network64 65volumes:66  postgres_dev_data:67  redis_dev_data:68 69networks:70  chat-network:71    driver: bridge