Files
Gemini_Draw/docker_compose.yaml

25 lines
702 B
YAML

services:
gemini-draw:
build:
context: .
dockerfile: Dockerfile
container_name: gemini-draw
init: true
restart: unless-stopped
environment:
GEMINI_API_KEY: "CHANGE_ME_TO_YOUR_GEMINI_API_KEY"
API_AUTH_TOKEN: "CHANGE_ME_TO_A_LONG_RANDOM_TOKEN"
API_PORT: "3002"
API_AUTH_DISABLED: "false"
APP_PASSWORD: "123456"
APP_URL: "http://localhost:3000"
ports:
- "3000:3000"
- "3002:3002"
healthcheck:
test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:3002/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s