* Add docker files * Add python precompiled cache file in the image * Add Notes in docker.md * Create docker-publish.yml * Modify docker-compose.yml not to use the bind mount * Update torch version * Change --share to --listen * Update torch version * Change '--share' to '--listen` * adjust code comments * Update requirements-docker.txt * chore: code cleanup - default_model env var isn't necessary as model is included in default preset, same for speed - ENV CMDARGS --listen is now synched with docker-compose.yml file - remove * Change entry_with_update.py to launch.py in entrypoint.sh * Change CMD in Dockerfile * Change default CMDARGS to --listen in Dockerfile * Modify CMD in Dockerfile * Fix docker-compose.yml * Import files from models,outputs * docs: change wording in docker.md, change git clone URL, add quotes to port mapping * docs: remove docker publish github action, remove pre-built image from docs * Modify modules versions for linux/arm64 * docs: update docker readme --------- Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> Co-authored-by: Manuel Schmid <dev@mash1t.de> Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
version: '3.9'
|
|
|
|
volumes:
|
|
fooocus-data:
|
|
|
|
services:
|
|
app:
|
|
build: .
|
|
image: fooocus
|
|
ports:
|
|
- "7865:7865"
|
|
environment:
|
|
- CMDARGS=--listen # 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:
|
|
- fooocus-data:/content/data
|
|
#- ./models:/import/models # Once you import files, you don't need to mount again.
|
|
#- ./outputs:/import/outputs # Once you import files, you don't need to mount again.
|
|
tty: true
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
device_ids: ['0']
|
|
capabilities: [compute, utility]
|