updated as per changes

This commit is contained in:
Ubuntu
2026-02-07 16:35:17 +00:00
parent 80566bf0a2
commit b268b4c59d
3 changed files with 170 additions and 170 deletions

View File

@@ -7,40 +7,40 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: goa-gel-api container_name: goa-gel-api
restart: unless-stopped restart: on-failure:10
ports: ports:
- "3001:3001" - "3001:3001"
environment: environment:
- NODE_ENV=development - NODE_ENV=production
- PORT=3001 - PORT=3001
- DATABASE_HOST=postgres - DATABASE_HOST=104.211.94.205
- DATABASE_PORT=5432 - DATABASE_PORT=5432
- DATABASE_NAME=goa_gel_platform - DATABASE_NAME=goa_gel_platform
- DATABASE_USER=postgres - DATABASE_USER=psqladmin
- DATABASE_PASSWORD=postgres_secure_password - DATABASE_PASSWORD=mD1tX9gDB6O6
- REDIS_HOST=redis - REDIS_HOST=redis
- REDIS_PORT=6379 - REDIS_PORT=6379
- MINIO_ENDPOINT=minio - MINIO_ENDPOINT=104.211.94.205
- MINIO_PORT=9000 - MINIO_PORT=9000
- MINIO_ACCESS_KEY=minioadmin - MINIO_ACCESS_KEY=admin
- MINIO_SECRET_KEY=minioadmin_secure - MINIO_SECRET_KEY=7x6sV7WsYjOa
- MINIO_BUCKET_DOCUMENTS=goa-gel-documents - MINIO_BUCKET_DOCUMENTS=goa-gel-documents
- BESU_RPC_URL=http://besu-node-1:8545 - BESU_RPC_URL=http://104.211.94.205:8545
- BESU_CHAIN_ID=1337 - BESU_CHAIN_ID=1337
- BESU_NETWORK_ID=2024 - BESU_NETWORK_ID=2024
- CONTRACT_ADDRESS_LICENSE_NFT=${CONTRACT_ADDRESS_LICENSE_NFT} - CONTRACT_ADDRESS_LICENSE_NFT=${CONTRACT_ADDRESS_LICENSE_NFT:-}
- CONTRACT_ADDRESS_APPROVAL_MANAGER=${CONTRACT_ADDRESS_APPROVAL_MANAGER} - CONTRACT_ADDRESS_APPROVAL_MANAGER=${CONTRACT_ADDRESS_APPROVAL_MANAGER:-}
- CONTRACT_ADDRESS_DEPARTMENT_REGISTRY=${CONTRACT_ADDRESS_DEPARTMENT_REGISTRY} - CONTRACT_ADDRESS_DEPARTMENT_REGISTRY=${CONTRACT_ADDRESS_DEPARTMENT_REGISTRY:-}
- CONTRACT_ADDRESS_WORKFLOW_REGISTRY=${CONTRACT_ADDRESS_WORKFLOW_REGISTRY} - CONTRACT_ADDRESS_WORKFLOW_REGISTRY=${CONTRACT_ADDRESS_WORKFLOW_REGISTRY:-}
- PLATFORM_WALLET_PRIVATE_KEY=${PLATFORM_WALLET_PRIVATE_KEY} - PLATFORM_WALLET_PRIVATE_KEY=${PLATFORM_WALLET_PRIVATE_KEY:-}
- JWT_SECRET=your-super-secure-jwt-secret-key-min-32-chars-long - JWT_SECRET=${JWT_SECRET:-K7gNx2qP9mBvL4wR8tYhD3jF6nC1aE5sX0uZoI7bQ2cV9kM4pT8yH1dG6rW3fA0}
depends_on: depends_on:
postgres: # postgres:
condition: service_healthy # condition: service_healthy
redis: redis:
condition: service_healthy condition: service_healthy
minio: # minio:
condition: service_healthy # condition: service_healthy
networks: networks:
- goa-gel-network - goa-gel-network
volumes: volumes:
@@ -54,25 +54,25 @@ services:
# ================================ # ================================
# PostgreSQL Database # PostgreSQL Database
# ================================ # ================================
postgres: # postgres:
image: postgres:15-alpine # image: postgres:15-alpine
container_name: goa-gel-postgres # container_name: goa-gel-postgres
restart: unless-stopped # restart: unless-stopped
ports: # ports:
- "5432:5432" # - "5432:5432"
environment: # environment:
- POSTGRES_DB=goa_gel_platform # - POSTGRES_DB=goa_gel_platform
- POSTGRES_USER=postgres # - POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres_secure_password # - POSTGRES_PASSWORD=postgres_secure_password
volumes: # volumes:
- postgres_data:/var/lib/postgresql/data # - postgres_data:/var/lib/postgresql/data
networks: # networks:
- goa-gel-network # - goa-gel-network
healthcheck: # healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d goa_gel_platform"] # test: ["CMD-SHELL", "pg_isready -U postgres -d goa_gel_platform"]
interval: 10s # interval: 10s
timeout: 5s # timeout: 5s
retries: 5 # retries: 5
# ================================ # ================================
# Redis Cache & Queue # Redis Cache & Queue
@@ -97,142 +97,142 @@ services:
# ================================ # ================================
# MinIO Object Storage # MinIO Object Storage
# ================================ # ================================
minio: # minio:
image: minio/minio:latest # image: minio/minio:latest
container_name: goa-gel-minio # container_name: goa-gel-minio
restart: unless-stopped # restart: unless-stopped
ports: # ports:
- "9000:9000" # - "9000:9000"
- "9001:9001" # - "9001:9001"
environment: # environment:
- MINIO_ROOT_USER=minioadmin # - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin_secure # - MINIO_ROOT_PASSWORD=minioadmin_secure
command: server /data --console-address ":9001" # command: server /data --console-address ":9001"
volumes: # volumes:
- minio_data:/data # - minio_data:/data
networks: # networks:
- goa-gel-network # - goa-gel-network
healthcheck: # healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] # test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s # interval: 30s
timeout: 20s # timeout: 20s
retries: 3 # retries: 3
# ================================ # # ================================
# Hyperledger Besu Dev Node (Auto-mining) # # Hyperledger Besu Dev Node (Auto-mining)
# ================================ # # ================================
besu-node-1: # besu-node-1:
image: hyperledger/besu:24.1.0 # image: hyperledger/besu:24.1.0
container_name: goa-gel-besu-1 # container_name: goa-gel-besu-1
restart: unless-stopped # restart: unless-stopped
user: root # user: root
ports: # ports:
- "8545:8545" # - "8545:8545"
- "8546:8546" # - "8546:8546"
- "30303:30303" # - "30303:30303"
command: # command:
- --network=dev # - --network=dev
- --miner-enabled # - --miner-enabled
- --miner-coinbase=0xfe3b557e8fb62b89f4916b721be55ceb828dbd73 # - --miner-coinbase=0xfe3b557e8fb62b89f4916b721be55ceb828dbd73
- --rpc-http-enabled # - --rpc-http-enabled
- --rpc-http-host=0.0.0.0 # - --rpc-http-host=0.0.0.0
- --rpc-http-port=8545 # - --rpc-http-port=8545
- --rpc-http-cors-origins=* # - --rpc-http-cors-origins=*
- --rpc-http-api=ETH,NET,WEB3,DEBUG,MINER,ADMIN,TXPOOL,TRACE # - --rpc-http-api=ETH,NET,WEB3,DEBUG,MINER,ADMIN,TXPOOL,TRACE
- --rpc-ws-enabled # - --rpc-ws-enabled
- --rpc-ws-host=0.0.0.0 # - --rpc-ws-host=0.0.0.0
- --rpc-ws-port=8546 # - --rpc-ws-port=8546
- --host-allowlist=* # - --host-allowlist=*
- --min-gas-price=0 # - --min-gas-price=0
- --data-path=/var/lib/besu # - --data-path=/var/lib/besu
volumes: # volumes:
- besu_data_1:/var/lib/besu # - besu_data_1:/var/lib/besu
networks: # networks:
- goa-gel-network # - goa-gel-network
healthcheck: # healthcheck:
test: ["CMD-SHELL", "exit 0"] # test: ["CMD-SHELL", "exit 0"]
interval: 30s # interval: 30s
timeout: 10s # timeout: 10s
retries: 3 # retries: 3
# ================================ # # ================================
# Blockscout Database # # Blockscout Database
# ================================ # # ================================
blockscout-db: # blockscout-db:
image: postgres:15-alpine # image: postgres:15-alpine
container_name: goa-gel-blockscout-db # container_name: goa-gel-blockscout-db
restart: unless-stopped # restart: unless-stopped
environment: # environment:
POSTGRES_DB: blockscout # POSTGRES_DB: blockscout
POSTGRES_USER: blockscout # POSTGRES_USER: blockscout
POSTGRES_PASSWORD: blockscout_secure # POSTGRES_PASSWORD: blockscout_secure
volumes: # volumes:
- blockscout_db_data:/var/lib/postgresql/data # - blockscout_db_data:/var/lib/postgresql/data
networks: # networks:
- goa-gel-network # - goa-gel-network
healthcheck: # healthcheck:
test: ["CMD-SHELL", "pg_isready -U blockscout -d blockscout"] # test: ["CMD-SHELL", "pg_isready -U blockscout -d blockscout"]
interval: 10s # interval: 10s
timeout: 5s # timeout: 5s
retries: 5 # retries: 5
# ================================ # # ================================
# Blockscout Explorer # # Blockscout Explorer
# ================================ # # ================================
blockscout: # blockscout:
image: blockscout/blockscout:6.3.0 # image: blockscout/blockscout:6.3.0
container_name: goa-gel-blockscout # container_name: goa-gel-blockscout
restart: unless-stopped # restart: unless-stopped
ports: # ports:
- "4000:4000" # - "4000:4000"
environment: # environment:
DATABASE_URL: postgresql://blockscout:blockscout_secure@blockscout-db:5432/blockscout # DATABASE_URL: postgresql://blockscout:blockscout_secure@blockscout-db:5432/blockscout
ETHEREUM_JSONRPC_VARIANT: besu # ETHEREUM_JSONRPC_VARIANT: besu
ETHEREUM_JSONRPC_HTTP_URL: http://besu-node-1:8545 # ETHEREUM_JSONRPC_HTTP_URL: http://besu-node-1:8545
ETHEREUM_JSONRPC_WS_URL: ws://besu-node-1:8546 # ETHEREUM_JSONRPC_WS_URL: ws://besu-node-1:8546
ETHEREUM_JSONRPC_TRACE_URL: http://besu-node-1:8545 # ETHEREUM_JSONRPC_TRACE_URL: http://besu-node-1:8545
NETWORK: Goa-GEL Private Network # NETWORK: Goa-GEL Private Network
SUBNETWORK: Development # SUBNETWORK: Development
LOGO: /images/blockscout_logo.svg # LOGO: /images/blockscout_logo.svg
LOGO_FOOTER: /images/blockscout_logo.svg # LOGO_FOOTER: /images/blockscout_logo.svg
COIN: ETH # COIN: ETH
COIN_NAME: Ether # COIN_NAME: Ether
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: "true" # INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: "true"
INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER: "false" # INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER: "false"
FETCH_REWARDS_WAY: trace_block # FETCH_REWARDS_WAY: trace_block
TRACE_FIRST_BLOCK: "0" # TRACE_FIRST_BLOCK: "0"
TRACE_LAST_BLOCK: "" # TRACE_LAST_BLOCK: ""
POOL_SIZE: 80 # POOL_SIZE: 80
POOL_SIZE_API: 10 # POOL_SIZE_API: 10
ECTO_USE_SSL: "false" # ECTO_USE_SSL: "false"
SECRET_KEY_BASE: RMgI4C1HSkxsEjdhtGMfwAHfyT6CKWXOgzCboJflfSm4jeAlic52io05KB6mqzc5 # SECRET_KEY_BASE: RMgI4C1HSkxsEjdhtGMfwAHfyT6CKWXOgzCboJflfSm4jeAlic52io05KB6mqzc5
PORT: 4000 # PORT: 4000
DISABLE_EXCHANGE_RATES: "true" # DISABLE_EXCHANGE_RATES: "true"
SHOW_TXS_CHART: "true" # SHOW_TXS_CHART: "true"
HISTORY_FETCH_INTERVAL: 30 # HISTORY_FETCH_INTERVAL: 30
TXS_HISTORIAN_INIT_LAG: 0 # TXS_HISTORIAN_INIT_LAG: 0
TXS_STATS_DAYS_TO_COMPILE_AT_INIT: 10 # TXS_STATS_DAYS_TO_COMPILE_AT_INIT: 10
HEART_BEAT_TIMEOUT: 60 # HEART_BEAT_TIMEOUT: 60
BLOCKSCOUT_HOST: localhost # BLOCKSCOUT_HOST: localhost
BLOCKSCOUT_PROTOCOL: http # BLOCKSCOUT_PROTOCOL: http
API_V2_ENABLED: "true" # API_V2_ENABLED: "true"
MIX_ENV: prod # MIX_ENV: prod
depends_on: # depends_on:
blockscout-db: # blockscout-db:
condition: service_healthy # condition: service_healthy
besu-node-1: # besu-node-1:
condition: service_healthy # condition: service_healthy
networks: # networks:
- goa-gel-network # - goa-gel-network
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start" # command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
networks: networks:
goa-gel-network: goa-gel-network:
driver: bridge driver: bridge
volumes: volumes:
postgres_data: # postgres_data:
redis_data: redis_data:
minio_data: # minio_data:
besu_data_1: # besu_data_1:
blockscout_db_data: # blockscout_db_data:

View File

@@ -43,7 +43,7 @@ http {
# API proxy (forward to backend) # API proxy (forward to backend)
location /api/ { location /api/ {
proxy_pass http://goa-gel-api:3001/; proxy_pass http://20.219.0.85:3001/;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade'; proxy_set_header Connection 'upgrade';

View File

@@ -1,6 +1,6 @@
export const environment = { export const environment = {
production: true, production: true,
apiBaseUrl: 'https://api.goagel.gov.in/api/v1', apiBaseUrl: 'http://20.219.0.85:3001/api/v1',
tokenStorageKey: 'goa_gel_token', tokenStorageKey: 'goa_gel_token',
refreshTokenStorageKey: 'goa_gel_refresh_token', refreshTokenStorageKey: 'goa_gel_refresh_token',
userStorageKey: 'goa_gel_user', userStorageKey: 'goa_gel_user',