File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Containers
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+
7+ jobs :
8+ docker :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - name : Start docker
15+ run : docker compose up -d --build
16+ env :
17+ POSTGRES_DB : ${{ secrets.POSTGRES_DB }}
18+ POSTGRES_USER : ${{ secrets.POSTGRES_USER }}
19+ POSTGRES_PASSWORD : ${{ secrets.POSTGRES_PASSWORD }}
Original file line number Diff line number Diff line change @@ -8,17 +8,17 @@ services:
88 environment :
99 DB_HOST : db
1010 DB_PORT : 5432
11- DB_NAME : embedding_db
12- DB_USER : user
13- DB_PASSWORD : password
11+ DB_NAME : ${POSTGRES_DB}$
12+ DB_USER : ${POSTGRES_USER}$
13+ DB_PASSWORD : ${POSTGRES_PASSWORD}$
1414
1515 db :
1616 image : pgvector/pgvector:pg17 # prebuilt postgres image with pgvector
1717 restart : always
1818 environment :
19- POSTGRES_DB : embedding_db
20- POSTGRES_USER : user
21- POSTGRES_PASSWORD : password
19+ POSTGRES_DB : ${POSTGRES_DB}$
20+ POSTGRES_USER : ${POSTGRES_USER}$
21+ POSTGRES_PASSWORD : ${POSTGRES_PASSWORD}$
2222 volumes :
2323 - postgres_data:/var/lib/postgresql/data
2424 ports :
You can’t perform that action at this time.
0 commit comments