Bot & Automation
Market AI
/root/hermes-projects/Market AI
docker-compose.yml
text
services:
postgres:
image: postgres:16-alpine
container_name: market-ai-postgres
restart: unless-stopped
environment:
POSTGRES_DB: market_ai
POSTGRES_USER: market_ai
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-market_ai_password}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "55432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U market_ai -d market_ai"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: market-ai-redis
restart: unless-stopped
ports:
- "56379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
api:
build:
context: .
dockerfile: Dockerfile
container_name: market-ai-api
restart: unless-stopped
env_file:
- .env
command: ["node", "apps/api/dist/server.js"]
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "8081:8080"
bot:
build:
context: .
dockerfile: Dockerfile
container_name: market-ai-bot
restart: unless-stopped
env_file:
- .env
command: ["node", "apps/bot/dist/index.js"]
depends_on:
- api
worker:
build:
context: .
dockerfile: Dockerfile
container_name: market-ai-worker
restart: unless-stopped
env_file:
- .env
command: ["node", "apps/worker/dist/index.js"]
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
admin-web:
build:
context: .
dockerfile: Dockerfile
container_name: market-ai-admin-web
restart: unless-stopped
env_file:
- .env
command: ["pnpm", "--filter", "@market-ai/admin-web", "start"]
depends_on:
- api
ports:
- "3001:3000"
volumes:
postgres_data: