langflow/docker-compose.yml
Gabriel Almeida 19af1e1996 fix: change default port
Port change to make it easier to deploy to spaces
2023-03-17 16:47:27 -03:00

26 lines
565 B
YAML

version: '3'
services:
backend:
build:
context: ./
dockerfile: ./dev.Dockerfile
ports:
- "7860:7860"
volumes:
- ./:/app
command: bash -c "uvicorn langflow.main:app --host 0.0.0.0 --port 7860 --reload"
frontend:
build:
context: ./src/frontend
dockerfile: ./dev.Dockerfile
ports:
- "3000:3000"
volumes:
- ./src/frontend:/app
# Set process.env.BACKEND to the backend service
environment:
- BACKEND_HOST="http://backend"
- BACKEND_PORT="7860"
restart: on-failure