-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.26 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3.8'
services:
zimg:
image: iconben/z-image-studio:latest
container_name: z-image-studio
ports:
- "8000:8000"
volumes:
- zimg-data:/data
- zimg-outputs:/data/outputs
- zimg-config:/home/appuser/.z-image-studio
environment:
- TZ=UTC
# Server configuration
- HOST=0.0.0.0
- PORT=8000
# Note: Z_IMAGE_STUDIO_DATA_DIR and Z_IMAGE_STUDIO_OUTPUT_DIR are
# set as defaults in the Dockerfile. Override with environment if needed.
# Performance (auto-detected by default)
# - ZIMAGE_ENABLE_TORCH_COMPILE=1
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
limits:
memory: 8G
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
zimg-data:
driver: local
zimg-outputs:
driver: local
zimg-config:
driver: local
networks:
default:
name: zimg-network