Skip to content

Commit 7f43be9

Browse files
envs in compose
1 parent cf3bca0 commit 7f43be9

3 files changed

Lines changed: 6 additions & 11 deletions

File tree

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ COPY CHANGELOG.rst CHANGELOG.rst
2121
COPY public public
2222
COPY chainlit.md chainlit.md
2323
COPY .chainlit .chainlit
24-
COPY env.example env.example
2524
RUN pip install -e .
2625

2726
ENV VIRTUAL_ENV=/venv

docker-compose.ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)