Spaces:
Sleeping
Sleeping
File size: 959 Bytes
55ef231 0c741d9 55ef231 0c741d9 55ef231 | 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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | services:
forge-api:
build:
context: .
dockerfile: Dockerfile
image: forge:latest
command: python api_server.py
environment:
CODE_PROVIDER_MODE: offline
PYTHONUNBUFFERED: "1"
ports:
- "8000:8000"
volumes:
- ./data:/app/data
- ./logs:/app/logs
- ./models:/app/models
- ./outputs:/app/outputs
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
forge-ui:
build:
context: .
dockerfile: Dockerfile
image: forge:latest
command: python app.py
environment:
CODE_PROVIDER_MODE: offline
PYTHONUNBUFFERED: "1"
ports:
- "7860:7860"
depends_on:
forge-api:
condition: service_healthy
volumes:
- ./data:/app/data
- ./logs:/app/logs
- ./models:/app/models
- ./outputs:/app/outputs
|