services: postgres: image: pgvector/pgvector:pg16 environment: POSTGRES_USER: ${POSTGRES_USER:-memoryos} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-memoryos} POSTGRES_DB: ${POSTGRES_DB:-memoryos} volumes: - pgdata:/var/lib/postgresql/data ports: - "5432:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-memoryos}"] interval: 10s timeout: 5s retries: 5 redis: image: redis:7-alpine ports: - "6379:6379" healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 minio: image: minio/minio:latest command: server /data --console-address ":9001" environment: MINIO_ROOT_USER: ${S3_ACCESS_KEY:-minioadmin} MINIO_ROOT_PASSWORD: ${S3_SECRET_KEY:-minioadmin} volumes: - miniodata:/data ports: - "9000:9000" - "9001:9001" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] interval: 10s timeout: 5s retries: 5 backend: build: ./backend env_file: .env environment: DATABASE_URL: postgresql+psycopg://${POSTGRES_USER:-memoryos}:${POSTGRES_PASSWORD:-memoryos}@postgres:5432/${POSTGRES_DB:-memoryos} REDIS_URL: redis://redis:6379/0 S3_ENDPOINT: http://minio:9000 depends_on: postgres: condition: service_healthy redis: condition: service_healthy minio: condition: service_healthy ports: - "8000:8000" frontend: build: ./frontend environment: NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8000} depends_on: - backend ports: - "3000:3000" volumes: pgdata: miniodata: