forked from lllyasviel/Fooocus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcpu-only-docker-compose.yml
30 lines (29 loc) · 1.41 KB
/
cpu-only-docker-compose.yml
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
services:
cpu-only-fooocus:
user: "${UID}:${GID}" # Run as the same user as the host
build:
context: . # Use the Dockerfile in the current directory
dockerfile: Dockerfile # Custom Dockerfile (if needed)
container_name: cpu-only-fooocus
ports:
- "7865:7865"
environment:
- CMDARGS=--listen --always-cpu --preset realistic # Arguments for launch.py.
- DATADIR=/content/data # Directory which stores models, outputs dir
- config_path=/content/data/config.txt
- config_example_path=/content/data/config_modification_tutorial.txt
- path_checkpoints=/content/data/models/checkpoints/
- path_loras=/content/data/models/loras/
- path_embeddings=/content/data/models/embeddings/
- path_vae_approx=/content/data/models/vae_approx/
- path_upscale_models=/content/data/models/upscale_models/
- path_inpaint=/content/data/models/inpaint/
- path_controlnet=/content/data/models/controlnet/
- path_clip_vision=/content/data/models/clip_vision/
- path_fooocus_expansion=/content/data/models/prompt_expansion/fooocus_expansion/
- path_outputs=/content/app/outputs/ # Warning: If it is not located under '/content/app', you can't see history log!
volumes:
- ~/.cpu-only-fooocus:/content/data
- ~/.cpu-only-fooocus/models:/import/models
- ~/.cpu-only-fooocus/outputs:/import/outputs
tty: true