Use the docker-compose.yaml file to orchestrate the application container. The service app builds from docker/Dockerfile and exposes the WebUI on port 7860.
Volume Mounting
To persist models and outputs on your host machine, you must map local directories to the container paths. Update the volumes section with your local absolute paths:
- Map local models to:
/AdvancedLivePortrait-WebUI/models - Map local outputs to:
/AdvancedLivePortrait-WebUI/outputs
GPU Configuration
By default, the configuration is set up for NVIDIA GPUs using the nvidia driver. If you are running on a different hardware setup, you must update the deploy.resources.reservations.devices.driver field.
services:
app:
build:
dockerfile: docker/Dockerfile
context: ..
image: jhj0517/advancedliveportrait-webui:latest
volumes:
- C:/your-local-path/AdvancedLivePortrait-WebUI/models:/AdvancedLivePortrait-WebUI/models
- C:/your-local-path/AdvancedLivePortrait-WebUI/outputs:/AdvancedLivePortrait-WebUI/outputs
ports:
- "7860:7860"
stdin_open: true
tty: true
entrypoint: ["python", "app.py", "--server_port", "7860", "--server_name", "0.0.0.0"]
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]