-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Docker compose seperate services and documentation
- Loading branch information
Showing
11 changed files
with
107 additions
and
20,739 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,13 @@ | ||
# dependencies | ||
/node_modules | ||
onto-demo-client/node_modules | ||
siopv2-openid4vp-demo-backend/node_modules | ||
onto-demo-shared-types/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,37 @@ | ||
version: '3.8' | ||
|
||
services: | ||
ssi-backend: | ||
ssi-agent: | ||
container_name: ssi-agent | ||
env_file: | ||
- ./docker/.env.ssi-agent | ||
tty: true | ||
build: | ||
context: ./ | ||
dockerfile: ./Dockerfile | ||
dockerfile: ./docker/Dockerfile.ssi-agent | ||
ports: | ||
- 5001:5001 | ||
- 5002:5002 | ||
- 3000:3000 | ||
- "5000:5000" | ||
oid4vci-demo-frontend: | ||
container_name: oid4vci-demo-frontend | ||
env_file: | ||
- ./docker/.env.oid4vci-demo-frontend | ||
depends_on: | ||
- ssi-agent | ||
tty: true | ||
build: | ||
context: ./ | ||
dockerfile: ./docker/Dockerfile.oid4vci-demo-frontend | ||
ports: | ||
- "5001:5001" | ||
oid4vp-demo-frontend: | ||
container_name: oid4vp-demo-frontend | ||
env_file: | ||
- ./docker/.env.oid4vp-demo-frontend | ||
depends_on: | ||
- ssi-agent | ||
tty: true | ||
build: | ||
context: ./ | ||
dockerfile: ./docker/Dockerfile.oid4vp-demo-frontend | ||
ports: | ||
- "5002:5002" |
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,5 @@ | ||
REACT_APP_OID4VP_AGENT_BASE_URL=http://ssi-agent:5000 | ||
REACT_APP_OID4VP_PRESENTATION_DEF_ID=sphereon | ||
REACT_APP_OID4VCI_AGENT_BASE_URL='http://ssi-agent:5000/sphereon2023' | ||
REACT_APP_ENVIRONMENT=sphereon | ||
PORT=5001 |
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,5 @@ | ||
NODE_ENV=development | ||
PORT=5002 | ||
REACT_APP_QR_CODE_EXPIRES_AFTER_SEC=300 | ||
REACT_APP_PRESENTATION_DEF_ID=sphereon2023 | ||
REACT_APP_BACKEND_BASE_URI=http://ssi-agent:5000 |
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,13 @@ | ||
NODE_ENV=development | ||
HOSTNAME=0.0.0.0 | ||
PORT=5000 | ||
COOKIE_SIGNING_KEY=8E5er6YyAO6dIrDTm7BXYWsafBSLxzjb | ||
DB_CONNECTION_NAME=default | ||
DB_SQLITE_FILE="database/agent_default.sqlite" | ||
DB_ENCRYPTION_KEY=29739248cad1bd1a0fc4d9b75cd4d2990de535baf5caadfdf8d8f86664aa830c | ||
OID4VP_ENABLED="true" | ||
OID4VP_WEBAPP_BASE_URI=http://oid4vp-demo-frontend:5000 | ||
OID4VP_AGENT_BASE_URI=http://oid4vp-demo-frontend:5000 | ||
AUTH_REQUEST_EXPIRES_AFTER_SEC=180 | ||
CONF_PATH="./conf" | ||
UNIVERSAL_RESOLVER_RESOLVE_URL="https://dev.uniresolver.io/1.0/identifiers" |
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
FROM node:16-bullseye | ||
FROM node:lts-bullseye | ||
SHELL ["/bin/bash", "-c"] | ||
RUN npm -g install pnpm && SHELL=bash pnpm setup && source /root/.bashrc && pnpm add -g pnpm | ||
RUN pnpm add typescript tslib | ||
WORKDIR /usr/src/app | ||
WORKDIR /opt/oid4vci-demo-frontend | ||
|
||
COPY . . | ||
COPY ./packages/oid4vci-demo-frontend . | ||
RUN pnpm install -r | ||
RUN rm -rf node_modules/.pnpm/[email protected] | ||
RUN rm -rf packages/agent/node_modules/.pnpm/[email protected] | ||
RUN pnpm build | ||
WORKDIR /usr/src/app/packages/agent | ||
WORKDIR /opt/oid4vci-demo-frontend | ||
ENTRYPOINT ["pnpm", "start:prod"] |
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,11 @@ | ||
FROM node:lts-bullseye | ||
SHELL ["/bin/bash", "-c"] | ||
RUN npm -g install pnpm && SHELL=bash pnpm setup && source /root/.bashrc && pnpm add -g pnpm | ||
RUN pnpm add typescript tslib | ||
WORKDIR /opt/oid4vp-demo-frontend | ||
|
||
COPY ./packages/oid4vp-demo-frontend . | ||
RUN pnpm install -r | ||
RUN pnpm build | ||
WORKDIR /opt/oid4vp-demo-frontend | ||
ENTRYPOINT ["pnpm", "start:prod"] |
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,14 @@ | ||
FROM node:lts-bullseye | ||
SHELL ["/bin/bash", "-c"] | ||
RUN npm -g install pnpm && SHELL=bash pnpm setup && source /root/.bashrc && pnpm add -g pnpm | ||
RUN pnpm add typescript tslib | ||
WORKDIR /opt/ssi-agent | ||
|
||
COPY ./ . | ||
RUN pnpm install -r | ||
RUN pnpm build | ||
RUN cd /opt/ssi-agent/packages/agent | ||
RUN ls -al | ||
|
||
WORKDIR /opt/ssi-agent/packages/agent | ||
ENTRYPOINT ["pnpm", "start:prod"] |
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
Oops, something went wrong.