Skip to content

Commit 61e2ff8

Browse files
committed
Include automatic sql table create script (#164)
1 parent 0653d3f commit 61e2ff8

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,15 @@
1919
- PostgreSQL (For storing the summarized repository information)
2020
- Github API Key (To get more quota requesting the repository data)
2121
- Amazon S3 (You can ignore the parameters if you are going to use it locally. You need to use certificate for your Database if you are going to host it.)
22+
- Docker (If you are hosting locally)
2223

23-
### Configuration
24+
### Configuration (Local)
25+
26+
1. Copy `.env.example` to `.env`
27+
2. Configure all the variables given in `.env`
28+
3. Run `docker compose up` or `docker compose up -d` to hide the output
29+
30+
### Configuration (Cloud)
2431

2532
1. Create PostgreSQL instance
2633
2. Copy `.env.example` to `.env`
@@ -30,6 +37,7 @@
3037
6. Build the server (`npm run build`)
3138
7. Run (`npm start`)
3239

40+
3341
#### Ollama Configuration Guide
3442

3543
- It's recommended if you can run bigger LLM than 14b parameter.

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ COPY . .
1919

2020
EXPOSE 8080
2121

22-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
22+
CMD ["bash", "-c", "python db/scripts/init_db.py && uvicorn main:app --host 0.0.0.0 --port 8080"]

0 commit comments

Comments
 (0)