Skip to content

Commit

Permalink
Add 2nd instance of Postgres and the latest dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Oct 17, 2024
1 parent ff26658 commit 390fad6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.tokenizer-api
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM tensorflow/tensorflow:latest

ENV dataset=sqli_dataset1.csv
ENV dataset=sqli_dataset2.csv
ENV KMP_AFFINITY=noverbose
ENV TF_CPP_MIN_LOG_LEVEL=3
ENV DATASET_PATH=/app/${dataset}
Expand Down
14 changes: 13 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
ports:
- "8500:8500"
- "8501:8501"
postgres:
postgres1:
image: postgres:latest
environment:
- POSTGRES_USER=postgres
Expand All @@ -33,3 +33,15 @@ services:
retries: 5
ports:
- "5432:5432"
postgres2:
image: postgres:latest
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
ports:
- "5433:5432"

0 comments on commit 390fad6

Please sign in to comment.