Skip to content

Commit a41e6e9

Browse files
fix docker
1 parent f0b966f commit a41e6e9

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.env.docker.template

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
## DOCKER ENVIRONMENT VARIABLES
22

33
OLLAMA_URL=http://ollama:11435
4+
5+
# OLLAMA_URL=http://host.docker.internal:11434 if running locally outside docker
6+
7+
48
OLLAMA_MODEL=phi3:mini
59
# Postgres , used on docker-compose.yml
610
POSTGRES_SERVER=db

Dockerfile.api

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ ADD . /app
99
# Install any needed packages specified in requirements.txt
1010
RUN pip install -r requirements.txt
1111

12-
12+
#install uvicorn
13+
RUN pip install uvicorn
1314
# Make port 8000 available to the world outside this container
1415
EXPOSE 8000
1516

docker-compose.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,8 @@ services:
3232
image: postgres:latest
3333
volumes:
3434
- db:/var/lib/postgresql/data
35-
36-
environment:
37-
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
38-
POSTGRES_USER: ${POSTGRES_USER}
39-
POSTGRES_DB: ${POSTGRES_DB}
35+
env_file:
36+
- .env.docker
4037
ports:
4138
- "5432:5432"
4239
# ollama:

0 commit comments

Comments
 (0)