feat: update Guidelines

This commit is contained in:
Sun-ZhenXing
2025-10-15 14:00:03 +08:00
parent fe329c80eb
commit 8cf227bd14
76 changed files with 1078 additions and 671 deletions

View File

@@ -1,23 +1,19 @@
x-default: &default
restart: unless-stopped
volumes:
- &localtime /etc/localtime:/etc/localtime:ro
- &timezone /etc/timezone:/etc/timezone:ro
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
services:
bytebot-desktop:
<<: *default
image: ghcr.io/bytebot-ai/bytebot-desktop:${BYTEBOT_VERSION:-edge}
container_name: bytebot-desktop
ports:
- "${BYTEBOT_DESKTOP_PORT_OVERRIDE:-9990}:9990"
volumes:
- *localtime
- *timezone
environment:
- TZ=${TZ:-UTC}
shm_size: 2gb
deploy:
resources:
@@ -27,25 +23,30 @@ services:
reservations:
cpus: '1.0'
memory: 2G
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9990/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
bytebot-agent:
<<: *default
image: ghcr.io/bytebot-ai/bytebot-agent:${BYTEBOT_VERSION:-edge}
container_name: bytebot-agent
depends_on:
- bytebot-desktop
- bytebot-db
bytebot-desktop:
condition: service_healthy
bytebot-db:
condition: service_healthy
ports:
- "${BYTEBOT_AGENT_PORT_OVERRIDE:-9991}:9991"
environment:
- TZ=${TZ:-UTC}
- BYTEBOTD_URL=http://bytebot-desktop:9990
- DATABASE_URL=postgresql://${POSTGRES_USER:-bytebot}:${POSTGRES_PASSWORD:-bytebotpass}@bytebot-db:5432/${POSTGRES_DB:-bytebot}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
volumes:
- *localtime
- *timezone
deploy:
resources:
limits:
@@ -54,21 +55,25 @@ services:
reservations:
cpus: '0.5'
memory: 512M
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9991/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
bytebot-ui:
<<: *default
image: ghcr.io/bytebot-ai/bytebot-ui:${BYTEBOT_VERSION:-edge}
container_name: bytebot-ui
depends_on:
- bytebot-agent
bytebot-agent:
condition: service_healthy
ports:
- "${BYTEBOT_UI_PORT_OVERRIDE:-9992}:9992"
environment:
- TZ=${TZ:-UTC}
- BYTEBOT_AGENT_BASE_URL=http://localhost:9991
- BYTEBOT_DESKTOP_VNC_URL=http://localhost:9990/websockify
volumes:
- *localtime
- *timezone
deploy:
resources:
limits:
@@ -81,15 +86,13 @@ services:
bytebot-db:
<<: *default
image: postgres:${POSTGRES_VERSION:-17-alpine}
container_name: bytebot-db
environment:
- TZ=${TZ:-UTC}
- POSTGRES_USER=${POSTGRES_USER:-bytebot}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-bytebotpass}
- POSTGRES_DB=${POSTGRES_DB:-bytebot}
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- *localtime
- *timezone
- bytebot_db_data:/var/lib/postgresql/data
deploy:
resources:
@@ -99,6 +102,12 @@ services:
reservations:
cpus: '0.25'
memory: 256M
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
volumes:
bytebot_db_data: