-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 1.3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (38 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
services:
picgen:
image: minorli/picgen:0.1.68
build:
context: .
ports:
- "8000:8000"
environment:
PICGEN_HOST: "0.0.0.0"
PICGEN_PORT: "8000"
PICGEN_LOG_FORMAT: "json"
PICGEN_ROOT_DIR: "/app"
PICGEN_STATIC_DIR: "/app/static"
PICGEN_DATA_DIR: "/app/data"
PICGEN_ENV_FILE: "/app/data/.env"
PICGEN_AUTH_ENABLED: "true"
PICGEN_SELF_REGISTRATION_ENABLED: "${PICGEN_SELF_REGISTRATION_ENABLED:-false}"
PICGEN_ADMIN_USERNAME: "${PICGEN_ADMIN_USERNAME:-admin}"
PICGEN_ADMIN_PASSWORD: "${PICGEN_ADMIN_PASSWORD:-}"
PICGEN_DEFAULT_GENERATE_URL: "https://sub.tidba.com/v1/images/generations"
PICGEN_DEFAULT_EDIT_URL: "https://sub.tidba.com/v1/images/edits"
PICGEN_DEFAULT_RESPONSES_URL: "https://sub.tidba.com/v1/responses"
PICGEN_DEFAULT_RESPONSES_REASONING_EFFORT: "${PICGEN_DEFAULT_RESPONSES_REASONING_EFFORT:-xhigh}"
volumes:
- picgen-data:/app/data
restart: unless-stopped
healthcheck:
test:
- "CMD"
- "python"
- "-c"
- "import os, urllib.request; urllib.request.urlopen('http://127.0.0.1:%s/api/ready' % os.environ.get('PICGEN_PORT', '8000'), timeout=3).read()"
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
picgen-data: