v0.1 - Merry Christmas!
This commit is contained in:
15
docker/.env.template
Normal file
15
docker/.env.template
Normal file
@@ -0,0 +1,15 @@
|
||||
# Copy this file to .env and modify as needed:
|
||||
# cp .env.template .env
|
||||
|
||||
# Server-side salt for consistent image naming
|
||||
LOCAL_SALT=__SERVERSIDE_SALT__
|
||||
|
||||
# ComfyUI server URL
|
||||
COMFYUI_URL=127.0.0.1:8188
|
||||
|
||||
# Workflow file/directory paths
|
||||
WORKFLOW_PATH=workflow.json
|
||||
WORKFLOW_DIR=workflows
|
||||
|
||||
# Output directory for generated images
|
||||
OUTPUT_DIR=output
|
||||
19
docker/Dockerfile
Normal file
19
docker/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN useradd -ms /bin/bash appuser && mkdir -p /app/output && chown -R appuser:appuser /app
|
||||
USER appuser
|
||||
|
||||
# Install dependencies
|
||||
COPY ../requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Expose the FastAPI port
|
||||
EXPOSE 8000
|
||||
|
||||
COPY ../comfykiosk/ ./comfykiosk/
|
||||
COPY ../sample.py ../sample-advanced.py ../workflow.json ./
|
||||
COPY ../sample-workflows ./sample-workflows
|
||||
|
||||
CMD ["python", "/app/sample.py"]
|
||||
15
docker/advanced-sample-docker-compose.yml
Normal file
15
docker/advanced-sample-docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
services:
|
||||
comfykiosk:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: ./docker/Dockerfile
|
||||
command: ["python", "/app/sample-advanced.py"]
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- comfykiosk-output:/app/output
|
||||
ports:
|
||||
- "18000:8000"
|
||||
|
||||
volumes:
|
||||
comfykiosk-output:
|
||||
9
docker/sample-docker-compose.yml
Normal file
9
docker/sample-docker-compose.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
comfykiosk:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: ./docker/Dockerfile
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "8000:8000"
|
||||
Reference in New Issue
Block a user