-
Notifications
You must be signed in to change notification settings - Fork 4
Quick‐Start
-
Ensure you have Docker and Docker Compose installed on your system.
-
Create a new directory for the project and navigate to it.
-
Create a
docker-compose.yml
file with the following content:services: replicate-flux-lora: image: ghcr.io/rtuszik/replicate-flux-lora:latest container_name: replicate-flux-lora ports: - "8080:8080" volumes: - ${HOST_OUTPUT_DIR}:/app/output - replicate-flux-lora-settings:/app/settings restart: unless-stopped volumes: replicate-flux-lora-settings:
-
Set the
HOST_OUTPUT_DIR
environment variable to the path where you want to save generated images. -
Run the application:
docker-compose up -d
-
Access the application at
http://localhost:8080
Note: If you prefer to store settings on the host instead of using a Docker volume, replace the replicate-flux-lora-settings:/app/settings
line with ${HOST_SETTINGS_DIR}:/app/settings
and remove the volumes:
section at the bottom. Then, set the HOST_SETTINGS_DIR
environment variable to your desired host directory path.
If you prefer to use docker run
, you can use the following command:
docker run -d \
--name replicate-flux-lora \
-p 8080:8080 \
-v /path/to/your/output/directory:/app/output \
-v replicate-flux-lora-settings:/app/settings \
ghcr.io/rtuszik/replicate-flux-lora:latest
Replace /path/to/your/output/directory
with the actual path where you want to save generated images.
After running either command, access the application at http://localhost:8080