version: '3.7' services: app_proxy: environment: APP_HOST: agent-zero_web_1 APP_PORT: 80 web: image: agent0ai/agent-zero:v2.16@sha256:0490714bf25bf481ea50d59ead21acec04344cee410a86b4e159908cb92ed8a2 restart: on-failure ulimits: nofile: soft: 65535 hard: 65535 extra_hosts: - "host.docker.internal:host-gateway" volumes: - ${APP_DATA_DIR}/data/usr:/a0/usr environment: - ALLOWED_ORIGINS=http://${DEVICE_DOMAIN_NAME}:${APP_AGENTZERO_PORT},https://${DEVICE_DOMAIN_NAME}:${APP_AGENTZERO_PORT},http://${DEVICE_HOSTNAME}:${APP_AGENTZERO_PORT},https://${DEVICE_HOSTNAME}:${APP_AGENTZERO_PORT},${APP_AGENTZERO_LOCAL_URLS}