version: '3.8' services: postgres: image: postgres:16-alpine environment: POSTGRES_USER: agentarena POSTGRES_PASSWORD: agentarena POSTGRES_DB: agentarena ports: - "5433:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U agentarena"] interval: 5s timeout: 5s retries: 5 redis: image: redis:7-alpine ports: - "6379:6379" volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 3s retries: 5 backend: build: context: ./backend dockerfile: Dockerfile ports: - "4000:4000" environment: DATABASE_URL: postgresql://agentarena:agentarena@postgres:5432/agentarena REDIS_URL: redis://redis:6379 PORT: 4000 POLYMARKET_GAMMA_URL: https://gamma-api.polymarket.com POLYMARKET_CLOB_URL: https://clob.polymarket.com MARKET_SYNC_INTERVAL_MS: 300000 API_KEY_SALT_ROUNDS: 10 depends_on: postgres: condition: service_healthy redis: condition: service_healthy volumes: - ./backend:/app - /app/node_modules frontend: build: context: ./frontend dockerfile: Dockerfile ports: - "5173:5173" environment: VITE_API_URL: http://localhost:4000 VITE_WS_URL: ws://localhost:4000 depends_on: - backend volumes: - ./frontend:/app - /app/node_modules volumes: postgres_data: redis_data: