fix: devcontainer build and setup on fresh clones
This commit is contained in:
parent
1e8050611c
commit
c2125f063b
7 changed files with 70 additions and 15 deletions
|
|
@ -12,7 +12,11 @@ services:
|
|||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
env_file:
|
||||
- .env
|
||||
# Optional: fresh clones and CI checkouts have no `.env` (gitignored);
|
||||
# containers must still create so `config`/`build` work everywhere.
|
||||
# Runtime secrets come from `.env` when present (see setup.sh).
|
||||
- path: .env
|
||||
required: false
|
||||
volumes:
|
||||
# No venv volume by design: the venv lives at /opt/venv (image-local,
|
||||
# see backend/Dockerfile). A named volume here used to shadow the image
|
||||
|
|
@ -43,7 +47,11 @@ services:
|
|||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
env_file:
|
||||
- .env
|
||||
# Optional: fresh clones and CI checkouts have no `.env` (gitignored);
|
||||
# containers must still create so `config`/`build` work everywhere.
|
||||
# Runtime secrets come from `.env` when present (see setup.sh).
|
||||
- path: .env
|
||||
required: false
|
||||
environment:
|
||||
# Dev default (HMR); prod .env sets `preview` (build + serve bundle).
|
||||
FRONTEND_MODE: ${FRONTEND_MODE:-dev}
|
||||
|
|
@ -65,7 +73,11 @@ services:
|
|||
# .env.example) together with Dockerfile.lfx + backend `lfx~=` pin.
|
||||
image: langflowai/langflow:${LANGFLOW_VERSION:-1.12.0}
|
||||
env_file:
|
||||
- .env
|
||||
# Optional: fresh clones and CI checkouts have no `.env` (gitignored);
|
||||
# containers must still create so `config`/`build` work everywhere.
|
||||
# Runtime secrets come from `.env` when present (see setup.sh).
|
||||
- path: .env
|
||||
required: false
|
||||
environment:
|
||||
# Static values only; secrets/URLs come from .env via env_file.
|
||||
LANGFLOW_CONFIG_DIR: /app/langflow
|
||||
|
|
@ -104,7 +116,11 @@ services:
|
|||
context: .
|
||||
dockerfile: Dockerfile.lfx
|
||||
env_file:
|
||||
- .env
|
||||
# Optional: fresh clones and CI checkouts have no `.env` (gitignored);
|
||||
# containers must still create so `config`/`build` work everywhere.
|
||||
# Runtime secrets come from `.env` when present (see setup.sh).
|
||||
- path: .env
|
||||
required: false
|
||||
volumes:
|
||||
- lfx-data:/flows
|
||||
ports:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue