version: '3.8' services: memory: build: . container_name: openclaw-memory ports: - "3000:3000" environment: - DB_HOST=postgres - DB_PORT=5432 - DB_NAME=openclaw - DB_USER=postgres - DB_PASSWORD=${DB_PASSWORD:-postgres} - PORT=3000 - NODE_ENV=production depends_on: postgres: condition: service_healthy networks: - openclaw-network restart: unless-stopped healthcheck: test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"] interval: 30s timeout: 3s retries: 3 start_period: 5s networks: openclaw-network: external: true