Skip to content

Commit

Permalink
merged the main api to also utilise postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Nov 12, 2023
1 parent 92682d3 commit 32c6a98
Show file tree
Hide file tree
Showing 45 changed files with 215 additions and 286 deletions.
14 changes: 12 additions & 2 deletions deployment/k3s/templates/deployments/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,18 @@ spec:
name: server-api-keys # MEILI_MASTER_KEY
{{ end }}
env:
- name: DB_LOCATION
value: api_data.db
- name: POSTGRES_URL
value: postgres-rw.navigatum.svc.cluster.local
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: postgres-db-secret
key: user
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-db-secret
key: password
ports:
- containerPort: 3003
name: api
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ services:
user: 1000:3000
environment:
MIELI_URL: http://meilisearch:7700
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_URL: db:5432
depends_on:
meilisearch:
condition: service_healthy
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 32c6a98

Please sign in to comment.