File size: 694 Bytes
95f8c4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
services:
  aistudio-api:
    build: .
    container_name: aistudio-api
    restart: unless-stopped
    ports:
      - "8080:8080"    # API server
      # - "9222:9222"  # Optional: expose only when debugging browser
    volumes:
      - ./data:/app/data           # Account data persistence
      - ./.env:/app/.env:ro        # Environment config (read-only)
    environment:
      - AISTUDIO_PORT=8080
      - AISTUDIO_BROWSER_PORT=9222
      - AISTUDIO_BROWSER_HEADLESS=1
      - AISTUDIO_ACCOUNTS_DIR=/app/data/accounts
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8080/v1beta/models"]
      interval: 30s
      timeout: 10s
      start_period: 10s
      retries: 3