services: dobotai-postgres: image: ${DOBOTAI_POSTGRES_IMAGE:-postgres:16-alpine} container_name: dobotai-postgres env_file: - ${DOBOTAI_POSTGRES_ENV_FILE:?set DOBOTAI_POSTGRES_ENV_FILE in runtime.env} volumes: - dobotai-postgres-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] interval: 5s timeout: 3s retries: 30 restart: unless-stopped security_opt: - no-new-privileges:true networks: - dobotai-network dobotai-dingtalk: image: ${DOBOTAI_IMAGE:?set DOBOTAI_IMAGE in runtime.env} container_name: dobotai-dingtalk depends_on: dobotai-postgres: condition: service_healthy env_file: - ${DOBOTAI_ENV_FILE:?set DOBOTAI_ENV_FILE in runtime.env} environment: DOBOTAI_SECRET_DIR: /var/lib/dobotai/secrets volumes: - type: bind source: ${DOBOTAI_SECRET_DIR_HOST:?set DOBOTAI_SECRET_DIR_HOST in runtime.env} target: /var/lib/dobotai/secrets read_only: false ports: - "127.0.0.1:8090:8090" extra_hosts: - "host.docker.internal:host-gateway" restart: unless-stopped init: true read_only: true tmpfs: - /tmp:rw,noexec,nosuid,size=32m security_opt: - no-new-privileges:true networks: - dobotai-network volumes: dobotai-postgres-data: name: dobotai-postgres-data networks: dobotai-network: name: dobotai-network driver: bridge