-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
142 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: "3.7" | ||
services: | ||
node: | ||
image: "${IMAGE_NODE_A:-nutsfoundation/nuts-node:master}" | ||
environment: | ||
NUTS_CONFIGFILE: /opt/nuts/nuts.yaml | ||
volumes: | ||
- "./nuts.yaml:/opt/nuts/nuts.yaml:ro" | ||
- "../../tls-certs/nodeA-certificate.pem:/opt/nuts/certificate-and-key.pem:ro" | ||
- "../../tls-certs/truststore.pem:/opt/nuts/truststore.pem:ro" | ||
ports: | ||
- "1323:1323" | ||
healthcheck: | ||
interval: 1s # Make test run quicker by checking health status more often | ||
depends_on: | ||
db: | ||
condition: service_healthy | ||
db: | ||
image: postgres:16-alpine | ||
restart: always | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
healthcheck: | ||
test: [ "CMD-SHELL", "pg_isready -U postgres" ] # this makes sure the container only reports healthy it can be connected to | ||
interval: 1s | ||
timeout: 5s | ||
retries: 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
url: https://node | ||
verbosity: debug | ||
auth: | ||
contractvalidators: | ||
- dummy | ||
irma: | ||
autoupdateschemas: false | ||
tls: | ||
truststorefile: /opt/nuts/truststore.pem | ||
certfile: /opt/nuts/certificate-and-key.pem | ||
certkeyfile: /opt/nuts/certificate-and-key.pem | ||
crypto: | ||
storage: fs | ||
storage: | ||
sql: | ||
connection: postgres://postgres:postgres@db:5432/postgres?sslmode=disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
source ../../util.sh | ||
|
||
echo "------------------------------------" | ||
echo "Cleaning up running Docker containers and volumes, and key material..." | ||
echo "------------------------------------" | ||
docker compose stop | ||
docker compose rm -f -v | ||
|
||
echo "------------------------------------" | ||
echo "Starting Docker containers..." | ||
echo "------------------------------------" | ||
docker compose up --wait | ||
if [ $? -ne 0 ]; then | ||
echo "ERROR: node failed to start" | ||
exitWithDockerLogs 1 | ||
fi | ||
|
||
echo "------------------------------------" | ||
echo "Stopping Docker containers..." | ||
echo "------------------------------------" | ||
docker compose stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters