Skip to content

Commit 390fad6

Browse files
committed
Add 2nd instance of Postgres and the latest dataset
1 parent ff26658 commit 390fad6

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Dockerfile.tokenizer-api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM tensorflow/tensorflow:latest
22

3-
ENV dataset=sqli_dataset1.csv
3+
ENV dataset=sqli_dataset2.csv
44
ENV KMP_AFFINITY=noverbose
55
ENV TF_CPP_MIN_LOG_LEVEL=3
66
ENV DATASET_PATH=/app/${dataset}

docker-compose.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ services:
2121
ports:
2222
- "8500:8500"
2323
- "8501:8501"
24-
postgres:
24+
postgres1:
2525
image: postgres:latest
2626
environment:
2727
- POSTGRES_USER=postgres
@@ -33,3 +33,15 @@ services:
3333
retries: 5
3434
ports:
3535
- "5432:5432"
36+
postgres2:
37+
image: postgres:latest
38+
environment:
39+
- POSTGRES_USER=postgres
40+
- POSTGRES_PASSWORD=postgres
41+
healthcheck:
42+
test: ["CMD-SHELL", "pg_isready -U postgres"]
43+
interval: 5s
44+
timeout: 5s
45+
retries: 5
46+
ports:
47+
- "5433:5432"

0 commit comments

Comments
 (0)