Add Dockerfile and docker-compose.yml for pre-production environment setup
This commit is contained in:
parent
f693fa8f9e
commit
e38ab095d9
2 changed files with 33 additions and 0 deletions
3
docker_example/pre.Dockerfile
Normal file
3
docker_example/pre.Dockerfile
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
FROM logspace/langflow:1.0-alpha
|
||||
|
||||
CMD ["python", "-m", "langflow", "run", "--host", "0.0.0.0", "--port", "7860"]
|
||||
30
docker_example/pre.docker-compose.yml
Normal file
30
docker_example/pre.docker-compose.yml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
langflow:
|
||||
image: logspace/langflow:1.0-alpha
|
||||
ports:
|
||||
- "7860:7860"
|
||||
depends_on:
|
||||
- postgres
|
||||
environment:
|
||||
- LANGFLOW_DATABASE_URL=postgresql://langflow:langflow@postgres:5432/langflow
|
||||
# This variable defines where the logs, file storage, monitor data and secret keys are stored.
|
||||
- LANGFLOW_CONFIG_DIR=/var/lib/langflow
|
||||
volumes:
|
||||
- langflow-data:/var/lib/langflow
|
||||
|
||||
postgres:
|
||||
image: postgres:16
|
||||
environment:
|
||||
POSTGRES_USER: langflow
|
||||
POSTGRES_PASSWORD: langflow
|
||||
POSTGRES_DB: langflow
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- langflow-postgres:/var/lib/postgresql/data
|
||||
|
||||
volumes:
|
||||
langflow-postgres:
|
||||
langflow-data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue