Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspace
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaia-X
Trust Services API
workspace
Commits
a65a2431
Commit
a65a2431
authored
3 years ago
by
Yordan Kinkov
Browse files
Options
Downloads
Patches
Plain Diff
#6
add infohub to docker-compose environment
parent
7f0b2fc3
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!4
#6 add infohub to docker-compose environment
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+0
-6
0 additions, 6 deletions
README.md
docker-compose.yml
+14
-5
14 additions, 5 deletions
docker-compose.yml
env/infohub.env
+7
-0
7 additions, 0 deletions
env/infohub.env
export-env.sh
+0
-25
0 additions, 25 deletions
export-env.sh
with
21 additions
and
36 deletions
README.md
+
0
−
6
View file @
a65a2431
...
@@ -31,12 +31,6 @@ with environment variables which will be injected in its container.
...
@@ -31,12 +31,6 @@ with environment variables which will be injected in its container.
./setup.sh
./setup.sh
```
```
*
set the services you would like to use in the docker-compose.yml file, defaults is
**infohub**
*
set the services you would like to use in the docker-compose.yml file, defaults is
**infohub**
*
set needed environment variables in an
`.env`
file and add the file path in
`export-env.sh`
script
*
export environment variables:
```
. ./export-env.sh
```
*
run docker compose:
*
run docker compose:
```
```
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
14
−
5
View file @
a65a2431
version
:
'
3.4'
version
:
'
3.4'
services
:
services
:
infohub
:
container_name
:
infohub
build
:
context
:
$GOPATH/src/code.vereign.com/gaiax/tsa/infohub
dockerfile
:
deployment/compose/Dockerfile
volumes
:
-
"
$GOPATH/src/code.vereign.com/gaiax/tsa/infohub:/go/src/code.vereign.com/gaiax/tsa/infohub"
env_file
:
./env/infohub.env
ports
:
-
"
8080:8080"
redis
:
redis
:
image
:
"
redis:alpine"
image
:
"
redis:alpine"
container_name
:
redis
container_name
:
redis
...
@@ -19,11 +31,8 @@ services:
...
@@ -19,11 +31,8 @@ services:
driver-did-sov
:
driver-did-sov
:
image
:
universalresolver/driver-did-sov:latest
image
:
universalresolver/driver-did-sov:latest
environment
:
env_file
:
uniresolver_driver_did_sov_libIndyPath
:
${uniresolver_driver_did_sov_libIndyPath}
./env/resolver.env
uniresolver_driver_did_sov_poolConfigs
:
${uniresolver_driver_did_sov_poolConfigs}
uniresolver_driver_did_sov_poolVersions
:
${uniresolver_driver_did_sov_poolVersions}
uniresolver_driver_did_sov_walletName
:
${uniresolver_driver_did_sov_walletName}
ports
:
ports
:
-
"
9092:8080"
-
"
9092:8080"
...
...
This diff is collapsed.
Click to expand it.
env/infohub.env
0 → 100644
+
7
−
0
View file @
a65a2431
HTTP_HOST=""
HTTP_PORT="8080"
HTTP_IDLE_TIMEOUT="60s"
HTTP_READ_TIMEOUT="10s"
HTTP_WRITE_TIMEOUT="10s"
HTTP_MAX_REQUEST_SIZE="1000000"
REDIS_HOST="redis"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
export-env.sh
deleted
100755 → 0
+
0
−
25
View file @
7f0b2fc3
#!/bin/sh
## Usage:
## . ./export-env.sh
envFiles
=(
"env/resolver.env"
)
unamestr
=
$(
uname
)
for
f
in
${
envFiles
[@]
}
;
do
echo
"Exporting
$f
..."
if
[
"
$unamestr
"
=
'Linux'
]
;
then
export
$(
grep
-v
'^#'
$f
| xargs
-d
'\n'
)
elif
[
"
$unamestr
"
=
'FreeBSD'
]
||
[
"
$unamestr
"
=
'Darwin'
]
;
then
export
$(
grep
-v
'^#'
$f
| xargs
-0
)
fi
done
echo
"Done"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment