-
Notifications
You must be signed in to change notification settings - Fork 2
/
deploy-local.sh
39 lines (31 loc) · 1.02 KB
/
deploy-local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
export repo="ghcr.io/catenax-ng/product-test-data-generator"
export hostname="192.168.1.115"
export realm="master"
export client="tdg-ui"
export secret="EnrVFciew6YuNQLsIZZqX58ux8Qa1fHw"
# Database parameters
export TDG_DB_HOSTNAME="db"
export TDG_DB_PORT="27017"
export TDG_DB_NAME="tdg"
export TDG_DB_USERNAME="admin"
export TDG_DB_PASSWORD="admin"
# API Server parameters
export TDG_HOST_SECURE="false"
export TDG_HOST_NAME="$hostname"
export TDG_HOST_PORT="8080"
export TDG_API_KEY="SPEEDBOAT"
export TDG_API_ENDPOINT="/api"
# Admin parameters
export TDG_ADMIN_HOST_SECURE="false"
export TDG_ADMIN_HOST_NAME="$hostname"
export TDG_ADMIN_HOST_PORT="8090"
export TDG_ADMIN_HOST_PORT_EXTERNAL="$TDG_ADMIN_HOST_PORT"
# Please install keycloak and set values here
export TDG_IAM_SERVER_URL=http://${hostname}:9001/auth
export TDG_IAM_RESOURCE=${client}
export TDG_IAM_REALM=${realm}
export TDG_IAM_SECRET=${secret}
cd local-docker
docker-compose up -d --force-recreate # --build --force-recreate --renew-anon-volumes
cd ..