8000 feat/update-docker-compose by KambleSahil3 · Pull Request #1209 · credebl/platform · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat/update-docker-compose #1209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.demo
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,8 @@ ELK_PASSWORD=xxxxxx # ELK user password
ORGANIZATION=credebl
CONTEXT=platform
APP=api

#Schema-file-server
APP_PORT=4000
JWT_TOKEN_SECRET=c2e48ca31ac2a0b9af47f3a9f5a0809a858c296948c1326eb746bb7bc945a9d5
ISSUER=Credebl
200 changes: 200 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
version: '3'

services:
nats:
container_name: nats
entrypoint: '/nats-server -c /nats-server.conf -DV' # Corrected the path to nats-server.conf
image: nats
ports:
- '4222:4222'
- '6222:6222'
- '8222:8222'
# volumes:
# - ./nats-server.conf:/nats-server.conf # Mount the config file
redis:
image: redis:6.2-alpine
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning
volumes:
- cache:/data
api-gateway:
depends_on:
- nats # Use depends_on instead of needs
- redis
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.api-gateway
ports:
- '5000:5000'
env_file:
- ./.env
user:
depends_on:
- nats # Use depends_on instead of needs
- api-gateway
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.user
env_file:
- ./.env
utility:
depends_on:
- nats # Use depends_on instead of needs
- api-gateway
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.utility
env_file:
- ./.env
connection:
depends_on:
- nats # Use depends_on instead of needs
- api-gateway
- utility
- user
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.connection
env_file:
- ./.env
issuance:
depends_on:
- nats # Use depends_on instead of needs
- redis
- api-gateway
- user
- connection
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.issuance
env_file:
- ./.env
ledger:
depends_on:
- nats # Use depends_on instead of needs
- api-gateway
- user
- connection
- issuance
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.ledger
env_file:
- ./.env
organization:
depends_on:
- nats # Use depends_on instead of needs
- api-gateway
- user
- connection
- issuance
- ledger
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.organization
env_file:
- ./.env
verification:
depends_on:
- nats # Use depends_on instead of needs
- api-gateway
- user
- connection
- issuance
- ledger
- organization
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.verification
env_file:
- ./.env
agent-provisioning:
depends_on:
- nats # Use depends_on instead of needs
- api-gateway
- user
- connection
- issuance
- ledger
- organization
- verification
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.agent-provisioning
args:
- ROOT_PATH=$PWD/apps/agent-provisioning/AFJ/agent-config
env_file:
- ./.env
environment:
- ROOT_PATH=$PWD/apps/agent-provisioning/AFJ/agent-config
volumes:
- $PWD/apps/agent-provisioning/AFJ/agent-config:/app/agent-provisioning/AFJ/agent-config
- /var/run/docker.sock:/var/run/docker.sock
- /app/agent-provisioning/AFJ/token:/app/agent-provisioning/AFJ/token
- $PWD/agent.env:/app/agent.env
agent-service:
depends_on:
- nats # Use depends_on instead of needs
- api-gateway
- user
- connection
- issuance
- ledger
- organization
- verification
- agent-provisioning
command: sh -c 'until (docker logs platform-agent-provisioning-1 | grep "Agent-Provisioning-Service Microservice is listening to NATS"); do sleep 1; done && node dist/apps/agent-service/main.js'
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.agent-service
env_file:
- ./.env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes_from:
- agent-provisioning
cloud-wallet:
depends_on:
- nats
- api-gateway
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.cloud-wallet
env_file:
- ./.env
geolocation:
depends_on:
- nats
- api-gateway
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.geolocation
env_file:
- ./.env
notification:
depends_on:
- nats
- api-gateway
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.notification
env_file:
- ./.env
webhook:
depends_on:
- nats
- api-gateway
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.webhook
env_file:
- ./.env




volumes:
cache:
driver: local
76 changes: 28 additions & 48 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@ services:
command: redis-server --save 20 1 --loglevel warning
volumes:
- cache:/data
seed:
container_name: seed-service
image: ghcr.io/credebl/seed:latest
env_file:
- ./.env
volumes:
- $PWD/libs/prisma-service/prisma/data/credebl-master-table.json:/app/libs/prisma-service/prisma/data/credebl-master-table.json
api-gateway:
depends_on:
- nats # Use depends_on instead of needs
- redis
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.api-gateway
image: ghcr.io/credebl/api-gateway:latest
ports:
- '5000:5000'
env_file:
Expand All @@ -34,18 +39,14 @@ services:
depends_on:
- nats # Use depends_on instead of needs
- api-gateway
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.user
image: ghcr.io/credebl/user:latest
env_file:
- ./.env
utility:
depends_on:
- nats # Use depends_on instead of needs
- api-gateway
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.utility
image: ghcr.io/credebl/utility:latest
env_file:
- ./.env
connection:
Expand All @@ -54,21 +55,16 @@ services:
- api-gateway
- utility
- user
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.connection
image: ghcr.io/credebl/connection:latest
env_file:
- ./.env
issuance:
depends_on:
- nats # Use depends_on instead of needs
- redis
- api-gateway
- user
- connection
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.issuance
image: ghcr.io/credebl/issuance:latest
env_file:
- ./.env
ledger:
Expand All @@ -78,9 +74,7 @@ services:
- user
- connection
- issuance
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.ledger
image: ghcr.io/credebl/ledger:latest
env_file:
- ./.env
organization:
Expand All @@ -91,9 +85,7 @@ services:
- connection
- issuance
- ledger
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.organization
image: ghcr.io/credebl/organization:latest
env_file:
- ./.env
verification:
Expand All @@ -105,9 +97,7 @@ services:
- issuance
- ledger
- organization
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.verification
image: ghcr.io/credebl/verification:latest
env_file:
- ./.env
agent-provisioning:
Expand All @@ -120,11 +110,9 @@ services:
- ledger
- organization
- verification
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.agent-provisioning
args:
- ROOT_PATH=$PWD/apps/agent-provisioning/AFJ/agent-config
image: ghcr.io/credebl/agent-provisioning:latest
# args:
# - ROOT_PATH=$PWD/apps/agent-provisioning/AFJ/agent-config
env_file:
- ./.env
environment:
Expand All @@ -146,9 +134,7 @@ services:
- verification
- agent-provisioning
command: sh -c 'until (docker logs platform-agent-provisioning-1 | grep "Agent-Provisioning-Service Microservice is listening to NATS"); do sleep 1; done && node dist/apps/agent-service/main.js'
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.agent-service
image: ghcr.io/credebl/agent-service:latest
env_file:
- ./.env
volumes:
Expand All @@ -159,41 +145,35 @@ services:
depends_on:
- nats
- api-gateway
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.cloud-wallet
image: ghcr.io/credebl/cloud-wallet:latest
env_file:
- ./.env
geolocation:
depends_on:
- nats
- api-gateway
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.geolocation
image: ghcr.io/credebl/geolocation:latest
env_file:
- ./.env
notification:
depends_on:
- nats
- api-gateway
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.notification
image: ghcr.io/credebl/notification:latest
env_file:
- ./.env
webhook:
depends_on:
- nats
- api-gateway
build:
context: ./ # Adjust the context path as needed
dockerfile: Dockerfiles/Dockerfile.webhook
image: ghcr.io/credebl/webhook:latest
env_file:
- ./.env
schema-file-server:
container_name: schema-file-server
image: ghcr.io/credebl/schema-file-server:latest
env_file:
- ./.env




volumes:
cache:
Expand Down
0