File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ COPY CHANGELOG.rst CHANGELOG.rst
2121COPY public public
2222COPY chainlit.md chainlit.md
2323COPY .chainlit .chainlit
24- COPY env.example env.example
2524RUN pip install -e .
2625
2726ENV VIRTUAL_ENV=/venv
Original file line number Diff line number Diff line change @@ -6,12 +6,8 @@ services:
66 build : !reset
77 depends_on : !reset
88 ports : !reset
9- environment :
10- CHAT_BACKEND : ollama
11- DEFAULT_STORAGE_DIR : /tmp
12- EMBED_BACKEND : ollama
13- volumes : !override
14- - ./env.example:/app/.env:ro
9+ env_file : !override env.example
10+ volumes : !reset
1511
1612 ollama : !reset
1713
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ services:
44 restart : always
55 environment : &dbconfig
66 POSTGRES_DB : ${POSTGRES_DB:-willa}
7- POSTGRES_USER : ${POSTGRES_USER:-root }
8- POSTGRES_PASSWORD : ${POSTGRES_PASSWORD:-root }
9- DATABASE_URL : ${DATABASE_URL:-postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}}
7+ POSTGRES_USER : ${POSTGRES_USER:-postgres }
8+ POSTGRES_PASSWORD : ${POSTGRES_PASSWORD:-postgres }
9+ DATABASE_URL : ${DATABASE_URL:-postgresql://${POSTGRES_USER:-postgres }:${POSTGRES_PASSWORD:-postgres }@db/${POSTGRES_DB:-willa }}
1010 ports :
1111 - 5432:5432
1212 volumes :
1313 - ./.data/postgres:/var/lib/postgresql/data
1414 healthcheck :
15- test : ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
15+ test : ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres } -d ${POSTGRES_DB:-willa }"]
1616 interval : 10s
1717 timeout : 5s
1818 retries : 5
You can’t perform that action at this time.
0 commit comments