build: update docker for dev environment (#3551)
* build: update dockerfile for dev environment * chore: add script to centralize docker commands * build: create docker-compose.yml for services * chore: add makefile target for docker-compose
This commit is contained in:
parent
1483a465f2
commit
6cdc915460
4 changed files with 71 additions and 13 deletions
42
docker/dev.docker-compose.yml
Normal file
42
docker/dev.docker-compose.yml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
networks:
|
||||
dev-langflow:
|
||||
|
||||
services:
|
||||
langflow:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/dev.Dockerfile
|
||||
image: dev-langflow
|
||||
container_name: dev-langflow
|
||||
restart: always
|
||||
ports:
|
||||
- "7860:7860"
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- PYTHONDONTWRITEBYTECODE=1
|
||||
- LANGFLOW_DATABASE_URL=postgresql://langflow:langflow@postgres:5432/langflow
|
||||
- LANGFLOW_SUPERUSER=langflow
|
||||
- LANGFLOW_SUPERUSER_PASSWORD=langflow
|
||||
- LANGFLOW_CONFIG_DIR=/var/lib/langflow
|
||||
env_file:
|
||||
- ../.env
|
||||
volumes:
|
||||
- ../:/app
|
||||
depends_on:
|
||||
- postgres # Dependência no seu banco de dados existente
|
||||
networks:
|
||||
- dev-langflow
|
||||
|
||||
|
||||
postgres:
|
||||
container_name: postgres
|
||||
image: pgvector/pgvector:pg16
|
||||
environment:
|
||||
POSTGRES_USER: langflow
|
||||
POSTGRES_PASSWORD: langflow
|
||||
POSTGRES_DB: langflow
|
||||
ports:
|
||||
- "5432:5432"
|
||||
networks:
|
||||
- dev-langflow
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue