Skip to content
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

Merge Dev branch to main #82

Merged
merged 71 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
89f8dfe
Merge branch 'dev' into 20-reestablish-socket-communications-for-fron…
jmsm412 May 26, 2024
01f8d98
Connection
jmsm412 May 26, 2024
7762086
Progress bar
jmsm412 May 27, 2024
dfd96c6
Connecting events from rair-sync
jmsm412 May 29, 2024
f39eb22
Sub/Pub redis approach
jmsm412 May 29, 2024
85674dd
Reusable socket helper
jmsm412 May 29, 2024
ff6f777
Notification DB Schema
jmsm412 May 29, 2024
d6b0689
Connect with rair-stream
jmsm412 May 30, 2024
ffe4580
Updating code
jmsm412 May 30, 2024
2dd7e46
Merge branch 'dev' into 20-reestablish-socket-communications-for-fron…
jmsm412 May 30, 2024
307db00
Notifications endpoints
jmsm412 May 30, 2024
18fe963
Connect docker .env
jmsm412 May 30, 2024
6a137dc
CORS update
jmsm412 May 30, 2024
9890604
nginx config
jmsm412 May 30, 2024
4152c52
Ping interval test
jmsm412 May 30, 2024
d3d7485
Error handling
jmsm412 May 30, 2024
4d215e6
Ping test
jmsm412 May 30, 2024
a7dd128
Cleanup
jmsm412 May 31, 2024
4810d60
Schema and sponsor logic
jmsm412 May 31, 2024
cf6fedf
Frontend button
jmsm412 May 31, 2024
726d110
Only free actions
jmsm412 May 31, 2024
88974a3
Cleanup
jmsm412 May 31, 2024
5e94caa
CORS test
jmsm412 May 31, 2024
cba8336
Merge pull request #52 from rairprotocol/20-reestablish-socket-commun…
sarora180673 Jun 4, 2024
7417573
Update .env.sample
sarora180673 Jun 5, 2024
b95ff4e
Update .env.sample
sarora180673 Jun 5, 2024
0f5731e
Merge dev into branch
jmsm412 Jun 6, 2024
3d0fa42
Update .env.sample
sarora180673 Jun 6, 2024
13b5019
Update docker-image.yml
sarora180673 Jun 6, 2024
34bbed2
Merge pull request #56 from rairprotocol/44-add-aa-gas-sponsorship-fl…
sarora180673 Jun 6, 2024
2b46eae
Hide button if offer isn't created yet
jmsm412 Jun 6, 2024
0619cef
Blockchain switcher for AA
jmsm412 Jun 6, 2024
4aa93b3
Handle no APP key
jmsm412 Jun 6, 2024
ce9e752
Fix return type
jmsm412 Jun 7, 2024
b68edb2
Cleanup and Offer fix
jmsm412 Jun 7, 2024
97466b6
Sponsor resales
jmsm412 Jun 10, 2024
26c12f0
Throw error if GCP doesn't initialize
jmsm412 Jun 10, 2024
2ff7bc7
GCP code
jmsm412 Jun 10, 2024
ca9699c
Reorder checks
jmsm412 Jun 10, 2024
0be2f85
Merge pull request #60 from rairprotocol/40-error-message-while-delet…
sarora180673 Jun 10, 2024
26cee92
Revert resale purchase sponsor
jmsm412 Jun 10, 2024
e9659ab
Sponsor gas resale creation
jmsm412 Jun 10, 2024
7ee1865
Merge pull request #62 from rairprotocol/53-cannot-get-total-supply-w…
sarora180673 Jun 10, 2024
fc2f876
Fix resale sponsor flag
jmsm412 Jun 11, 2024
3d25762
Save resale offers
jmsm412 Jun 11, 2024
1778738
Fix addition
jmsm412 Jun 12, 2024
8a1d87b
Fix
jmsm412 Jun 14, 2024
357fd61
Fix 2
jmsm412 Jun 14, 2024
49eed6b
Sorting
jmsm412 Jun 14, 2024
389f854
Merge pull request #66 from rairprotocol/65-nft-endpoint-token-query-…
sarora180673 Jun 14, 2024
430f01a
Version updates
jmsm412 Jun 17, 2024
55cc9ad
Update docker-image.yml
sarora180673 Jun 17, 2024
ce31d43
Merge pull request #61 from rairprotocol/44-select-blockchain-on-login
sarora180673 Jun 17, 2024
d8a0297
Read and Unread Filters
jmsm412 Jun 19, 2024
235c1db
Style fix
jmsm412 Jun 19, 2024
54f0195
new files for ssl config
Jun 20, 2024
b871d8b
typo
Jun 20, 2024
92dfa49
Merge pull request #72 from rairprotocol/ssl-config
sarora180673 Jun 20, 2024
58c8bb2
add Sold out text to hover effect
SeanM322 Jun 20, 2024
b954e70
Merge pull request #70 from rairprotocol/69-better-notifications-filt…
sarora180673 Jun 20, 2024
4d4e0dc
Merge pull request #73 from rairprotocol/sold-out-on-hover-effect
sarora180673 Jun 20, 2024
85d9313
Merge pull request #71 from rairprotocol/68-default-color-scheme-of-v…
sarora180673 Jun 21, 2024
27184c6
Close Swal after successful upload
jmsm412 Jun 24, 2024
392f3d8
Merge pull request #76 from rairprotocol/75-please-wait-uploading-fil…
sarora180673 Jun 24, 2024
109fb40
Update nginx.conf
sarora180673 Jun 25, 2024
9ae95f6
Remove user data query call
jmsm412 Jun 25, 2024
0313b31
Optional user data
jmsm412 Jun 25, 2024
7c77715
Update import logic
jmsm412 Jun 26, 2024
6671dd3
Update .env.sample
sarora180673 Jun 27, 2024
ce0ad65
Merge pull request #78 from rairprotocol/58-user-data-improvement
sarora180673 Jun 27, 2024
ea07656
Create HotDrops.yml
sarora180673 Jul 1, 2024
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: 4 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ binance_mainnet_rpc=https://bsc-dataseed.binance.org/
astar_mainnet_rpc=https://astar-mainnet.g.alchemy.com/v2/9KZaDwMUro6LImKeM717TmysfBSi3iNH
base_mainnet_rpc=https://base-mainnet.g.alchemy.com/v2/LPVexfumI81FHrSqJyhwpZ9ybdXXx4SM
#default image for NFTs that have no metadata
default_product_cover=https://rair.mypinata.cloud/ipfs/QmNtfjBAPYEFxXiHmY5kcPh9huzkwquHBcn9ZJHGe7hfaW
default_product_cover=https://rair.myfilebase.com/ipfs/QmcV94NurwfWVGpXTST1we8uDbYiVQamKe87WEHK6DRzqa
#ipfs configuration - pinata or ipfs
ipfs_service=pinata
ipfs_gateway=http://rairipfs:8080/ipfs
Expand Down Expand Up @@ -148,6 +148,9 @@ VAULT_BLOCKCHAIN_NETWORK_APP_ROLE_ID=""
VAULT_BLOCKCHAIN_NETWORK_APP_ROLE_SECRET_ID=""
VAULT_BLOCKCHAIN_NETWORK_use_x509_cert_auth=true

#rair-front
front_socket_uri=:5000

# media-service
media_service_port=5002
base_rairnode_url=http://rair-node:5000
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/HotDrops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build and Push rair-front Docker Image to Docker Hub

on:
workflow_dispatch:

#Allow repo secrets
env:
VITE_ALCHEMY_KEY: ${{ secrets.VITE_ALCHEMY_KEY }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
with:
ref: 'dev'

- name: login to docker registry
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}

- name: build and push rair-front docker image to registry
run: cp rair-front/.env.sample rair-front/.env
- name: appending VITE_MATIC_MAINNET_ALCHEMY_KEY in .env file
run: echo "VITE_MATIC_MAINNET_ALCHEMY_KEY"=${{ secrets.VITE_MATIC_MAINNET_ALCHEMY_KEY }} >> rair-front/.env
- name: appending VITE_MATIC_MAINNET_GAS_POLICY in .env file
run: echo "VITE_MATIC_MAINNET_GAS_POLICY"=${{ secrets.VITE_MATIC_MAINNET_GAS_POLICY }} >> rair-front/.env
- name: appending VITE_ETH_MAINNET_ALCHEMY_KEY in .env file
run: echo "VITE_ETH_MAINNET_ALCHEMY_KEY"=${{ secrets.VITE_ETH_MAINNET_ALCHEMY_KEY }} >> rair-front/.env
- name: appending VITE_ETH_MAINNET_GAS_POLICY in .env file
run: echo "VITE_ETH_MAINNET_GAS_POLICY"=${{ secrets.VITE_ETH_MAINNET_GAS_POLICY }} >> rair-front/.env
- name: appending VITE_BASE_MAINNET_ALCHEMY_KEY in .env file
run: echo "VITE_BASE_MAINNET_ALCHEMY_KEY"=${{ secrets.VITE_BASE_MAINNET_ALCHEMY_KEY }} >> rair-front/.env
- name: appending VITE_BASE_MAINNET_GAS_POLICY in .env file
run: echo "VITE_BASE_MAINNET_GAS_POLICY"=${{ secrets.VITE_BASE_MAINNET_GAS_POLICY }} >> rair-front/.env
- name: appending VITE_ETH_SEPOLIA_ALCHEMY_KEY in .env file
run: echo "VITE_ETH_SEPOLIA_ALCHEMY_KEY"=${{ secrets.VITE_ETH_SEPOLIA_ALCHEMY_KEY }} >> rair-front/.env
- name: appending VITE_ETH_SEPOLIA_GAS_POLICY in .env file
run: echo "VITE_ETH_SEPOLIA_GAS_POLICY"=${{ secrets.VITE_ETH_SEPOLIA_GAS_POLICY }} >> rair-front/.env
- name: build rair-front docker image
run: sudo docker build -t rair-front:${{github.sha}} -f rair-front/Dockerfile.prod rair-front
- name: tag image
run: |
docker tag rair-front:${{github.sha}} ${{secrets.DOCKERHUB_USERNAME}}/rair-front:_${{github.sha}}
docker tag rair-front:${{github.sha}} ${{secrets.DOCKERHUB_USERNAME}}/rair-front:_latest
- name: Docker push
run: |
docker push ${{secrets.DOCKERHUB_USERNAME}}/rair-front:_${{github.sha}}
docker push ${{secrets.DOCKERHUB_USERNAME}}/rair-front:_latest
18 changes: 16 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,22 @@ jobs:
- name: build and push rair-front docker image to registry
run: cp rair-front/.env.sample rair-front/.env
- name: appending VITE_ALCHEMY_KEY in .env file
run: echo "VITE_ALCHEMY_KEY"=${{ secrets.VITE_ALCHEMY_KEY }} >> rair-front/.env
- name: appending VITE_MATIC_MAINNET_ALCHEMY_KEY in .env file
run: echo "VITE_MATIC_MAINNET_ALCHEMY_KEY"=${{ secrets.VITE_MATIC_MAINNET_ALCHEMY_KEY }} >> rair-front/.env
- name: appending VITE_MATIC_MAINNET_GAS_POLICY in .env file
run: echo "VITE_MATIC_MAINNET_GAS_POLICY"=${{ secrets.VITE_MATIC_MAINNET_GAS_POLICY }} >> rair-front/.env
- name: appending VITE_ETH_MAINNET_ALCHEMY_KEY in .env file
run: echo "VITE_ETH_MAINNET_ALCHEMY_KEY"=${{ secrets.VITE_ETH_MAINNET_ALCHEMY_KEY }} >> rair-front/.env
- name: appending VITE_ETH_MAINNET_GAS_POLICY in .env file
run: echo "VITE_ETH_MAINNET_GAS_POLICY"=${{ secrets.VITE_ETH_MAINNET_GAS_POLICY }} >> rair-front/.env
- name: appending VITE_BASE_MAINNET_ALCHEMY_KEY in .env file
run: echo "VITE_BASE_MAINNET_ALCHEMY_KEY"=${{ secrets.VITE_BASE_MAINNET_ALCHEMY_KEY }} >> rair-front/.env
- name: appending VITE_BASE_MAINNET_GAS_POLICY in .env file
run: echo "VITE_BASE_MAINNET_GAS_POLICY"=${{ secrets.VITE_BASE_MAINNET_GAS_POLICY }} >> rair-front/.env
- name: appending VITE_ETH_SEPOLIA_ALCHEMY_KEY in .env file
run: echo "VITE_ETH_SEPOLIA_ALCHEMY_KEY"=${{ secrets.VITE_ETH_SEPOLIA_ALCHEMY_KEY }} >> rair-front/.env
- name: appending VITE_ETH_SEPOLIA_GAS_POLICY in .env file
run: echo "VITE_ETH_SEPOLIA_GAS_POLICY"=${{ secrets.VITE_ETH_SEPOLIA_GAS_POLICY }} >> rair-front/.env
- name: build rair-front docker image
run: sudo docker build -t rair-front:${{github.sha}} -f rair-front/Dockerfile.prod rair-front
- name: tag image
Expand Down
1 change: 1 addition & 0 deletions docker-compose-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ services:
VITE_HOME_PAGE: /
VITE_MATIC_MAIN_DIAMOND_FACTORY: ${matic_mainnet_diamond_factory_address}
VITE_MATIC_MAIN_DIAMOND_MARKETPLACE: ${matic_mainnet_diamond_marketplace_address}
VITE_NODE_SOCKET_URI: ${base_rairnode_url}
ports:
- 8088:80
networks:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.local-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ services:
VITE_HOME_PAGE: /
VITE_MATIC_MAIN_DIAMOND_FACTORY: ${matic_mainnet_diamond_factory_address}
VITE_MATIC_MAIN_DIAMOND_MARKETPLACE: ${matic_mainnet_diamond_marketplace_address}
VITE_NODE_SOCKET_URI: ${front_socket_uri}
ports:
- 8088:80
networks:
Expand Down
250 changes: 250 additions & 0 deletions docker-compose.local-ssl-with_certbot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
version: '3.9'

services:
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
command: certonly --webroot -w /var/www/certbot --force-renewal --email {email} -d {domain} --agree-tos
networks:
- rair-local
rair-node:
container_name: 'rair-node'
build:
context: rair-node/
dockerfile: Dockerfile
volumes:
- ./rair-node/db:/usr/src/rair-node/db
- ./rair-node/bin/Videos:/usr/src/rair-node/bin/Videos
environment:
PRODUCTION: "false"
MONGO_URI: mongodb://${localdbuser}:${localdbpass}@mongo:27017/rair-db?authSource=${localdbuser}
MONGO_URI_LOCAL: mongodb://${localdbuser}:${localdbpass}@mongo:27017/rair-db?authSource=${localdbuser}
GENERATE_MONGO_URI_WITH_VAULT_CREDENTIAL_UTIL: ${rairnode_generate_mongo_uri_with_vault_credential_util}
USE_X509_CERT_AUTH: ${VAULT_RAIRNODE_use_x509_cert_auth}
MONGO_DB_HOSTNAME: ${RAIRNODE_mongo_db_hostname}
MONGO_DB_NAME: ${mongo_db_name}
JWT_SECRET: ${jwt_secret}
PINATA_KEY: ${pinata_key}
PINATA_SECRET: ${pinata_secret}
ADMIN_NETWORK: ${admin_nft_chain}
ADMIN_CONTRACT: ${admin_contract}
SUPER_ADMIN_VAULT_STORE: ${SUPER_ADMIN_VAULT_STORE}
SERVICE_HOST: ${hostname}
DEFAULT_PRODUCT_COVER: ${default_product_cover}
GCP_PROJECT_ID: ${gcp_project_id}
GCP_IMAGE_BUCKET_NAME: ${gcp_image_bucket_name}
GCP_VIDEO_BUCKET_NAME: ${gcp_video_bucket_name}
GCP_GATEWAY: ${gcp_gateway}
GCP_CREDENTIALS: ${gcp_credentials}
IPFS_SERVICE: ${ipfs_service}
IPFS_GATEWAY: ${ipfs_gateway}
IPFS_API: ${ipfs_api}
PINATA_GATEWAY: ${pinata_gateway}
MATIC_TESTNET_RPC: ${matic_testnet_rpc}
MATIC_MAINNET_RPC: ${matic_mainnet_rpc}
BINANCE_MAINNET_RPC: ${binance_mainnet_rpc}
BINANCE_TESTNET_RPC: ${binance_testnet_rpc}
ETHEREUM_MAINNET_RPC: ${ethereum_mainnet_rpc}
ETHEREUM_TESTNET_SEPOLIA_RPC: ${ethereum_testnet_sepolia_rpc}
BASE_MAINNET_RPC: ${base_mainnet_rpc}
ASTAR_MAINNET_RPC: ${astar_mainnet_rpc}
MONGO_LOG_COLLECTION: ${mongo_log_collection}
LOG_LEVEL: ${log_level}
VAULT_URL: ${VAULT_URL}
VAULT_RAIRNODE_APP_ROLE_ID: ${VAULT_RAIRNODE_APP_ROLE_ID}
VAULT_RAIRNODE_APP_ROLE_SECRET_ID: ${VAULT_RAIRNODE_APP_ROLE_SECRET_ID}
REDIS_HOST: ${redisthhost}
REDIS_PORT: ${redisport}
SESSION_SECRET: ${session_secret}
SESSION_TTL: ${session_ttl}
SENTRY_DSN: ${sentry_dsn}
BASE_BCN_URL: ${base_bcn_url}
ZOOM_API_KEY: ${zoom_api_key}
ZOOM_API_SECRET: ${zoom_api_secret}
KOHLER_MEETING_ID: ${kohler_meeting_id}
ALCHEMY_API_KEY: ${alchemy_api_key}
WITHDRAWER_PRIVATE_KEY: ${withdrawer_private_key}
APP_NAME: ${app_name}
SEPOLIA_DIAMOND_MARKETPLACE_ADDRESS: ${sepolia_diamond_marketplace_address}
MATIC_MUMBAI_DIAMOND_MARKETPLACE_ADDRESS: ${matic_mumbai_diamond_marketplace_address}
MATIC_MAINNET_DIAMOND_MARKETPLACE_ADDRESS: ${matic_mainnet_diamond_marketplace_address}
ASTAR_DIAMOND_MARKETPLACE_ADDRESS: ${astar_diamond_marketplace_address}
BASE_DIAMOND_MARKETPLACE_ADDRESS: ${base_diamond_marketplace_address}
AWS_ACCESS_KEY_ID: ${filebase_access_key}
AWS_SECRET_ACCESS_KEY: ${filebase_secret_access_key}
FILEBASE_BUCKET: ${filebase_bucket}
YOTI_CLIENT_ID: ${yoti_client_id}
ports:
- 3000:3000
- 5000:5000
depends_on:
- rair-redis
- mongo
networks:
- rair-local
rair-sync:
container_name: 'rair-sync'
build:
context: rair-sync/
dockerfile: Dockerfile
environment:
PRODUCTION: "false"
MONGO_URI: mongodb+srv://${dbuser}:${dbpass}@${dbhost}
MONGO_URI_LOCAL: mongodb://${localdbuser}:${localdbpass}@mongo:27017/rair-db?authSource=${localdbuser}
MONGO_DB_HOSTNAME: ${BLOCKCHAIN_NETWORK_mongo_db_hostname}
MONGO_DB_NAME: ${mongo_db_name}
GENERATE_MONGO_URI_WITH_VAULT_CREDENTIAL_UTIL: ${blockchain_network_generate_mongo_uri_with_vault_credential_util}
USE_X509_CERT_AUTH: ${VAULT_BLOCKCHAIN_NETWORK_use_x509_cert_auth}
PINATA_KEY: ${pinata_key}
PINATA_SECRET: ${pinata_secret}
PINATA_GATEWAY: ${pinata_gateway}
INFURA_PROJECT_ID: ${infura_project_id}
DEFAULT_PRODUCT_COVER: ${default_product_cover}
BINANCE_TESTNET_FACTORY_ADDRESS: ${binance_testnet_factory_addres}
BINANCE_TESTNET_MINTER_ADDRESS: ${binance_testnet_minter_address}
BINANCE_MAINNET_FACTORY_ADDRESS: ${binance_mainnet_factory_addres}
BINANCE_MAINNET_MINTER_ADDRESS: ${binance_mainnet_minter_address}
SEPOLIA_FACTORY_ADDRESS: ${sepolia_factory_addres}
SEPOLIA_MINTER_ADDRESS: ${sepolia_minter_address}
MATIC_MUMBAI_FACTORY_ADDRESS: ${matic_mumbai_factory_addres}
MATIC_MUMBAI_MINTER_ADDRESS: ${matic_mumbai_minter_address}
MATIC_MAINNET_FACTORY_ADDRESS: ${matic_mainnet_factory_addres}
MATIC_MAINNET_MINTER_ADDRESS: ${matic_mainnet_minter_address}
ETHEREUM_MAINNET_FACTORY_ADDRESS: ${ethereum_mainnet_factory_addres}
ETHEREUM_MAINNET_MINTER_ADDRESS: ${ethereum_mainnet_minter_address}
BINANCE_RESALE_ADDRESS: ${binance_resale_address}
SEPOLIA_RESALE_ADDRESS: ${sepolia_resale_address}
MATIC_MUMBAI_RESALE_ADDRESS: ${matic_mumbai_resale_address}
ASTAR_DIAMOND_FACTORY_ADDRESS: ${astar_diamond_factory_address}
ASTAR_DIAMOND_MARKETPLACE_ADDRESS: ${astar_diamond_marketplace_address}
BASE_DIAMOND_FACTORY_ADDRESS: ${base_diamond_factory_address}
BASE_DIAMOND_MARKETPLACE_ADDRESS: ${base_diamond_marketplace_address}
SYNC_CONTRACT_REPEAT_EVERY: ${sync_contract_repeat_every}
SYNC_CONTRACT_TASK_INTERVAL: ${sync_contract_task_interval}
IPFS_SERVICE: ${ipfs_service}
IPFS_GATEWAY: ${ipfs_gateway}
IPFS_API: ${ipfs_api}
MONGO_LOG_COLLECTION: ${mongo_log_collection}
LOG_LEVEL: ${log_level}
VAULT_URL: ${VAULT_URL}
VAULT_BLOCKCHAIN_NETWORK_APP_ROLE_ID: ${VAULT_BLOCKCHAIN_NETWORK_APP_ROLE_ID}
VAULT_BLOCKCHAIN_NETWORK_APP_ROLE_SECRET_ID: ${VAULT_BLOCKCHAIN_NETWORK_APP_ROLE_SECRET_ID}
TEST_BSCSCAN_GATEWAY: ${test_bscscan_gateway}
TEST_POLYGONSCAN_GATEWAY: ${test_polygonscan_gateway}
TEST_ETHERSCAN_GATEWAY: ${test_etherscan_gateway}
POLYGONSCAN_GATEWAY: ${polygonscan_gateway}
ETHERSCAN_GATEWAY: ${etherscan_gateway}
BSCSCAN_GATEWAY: ${bscscan_gateway}
ASTAR_MAINNET_GATEWAY: ${astar_gateway}
ASTAR_MAINNET_DIAMOND_FACTORY_ADDRESS: ${astar_diamond_factory_address}
ASTAR_MAINNET_DIAMOND_MARKETPLACE_ADDRESS: ${astar_diamond_marketplace_address}
SENTRY_DSN: ${sentry_dsn}
BASE_RAIRNODE_URL: ${base_rairnode_url}
MATIC_TESTNET_RPC: ${matic_testnet_rpc}
MATIC_MAINNET_RPC: ${matic_mainnet_rpc}
BINANCE_MAINNET_RPC: ${binance_mainnet_rpc}
BINANCE_TESTNET_RPC: ${binance_testnet_rpc}
ETHEREUM_MAINNET_RPC: ${ethereum_mainnet_rpc}
ETHEREUM_TESTNET_SEPOLIA_RPC: ${ethereum_testnet_sepolia_rpc}
ASTAR_MAINNET_RPC: ${astar_mainnet_rpc}
REDIS_HOST: ${redisthhost}
REDIS_PORT: ${redisport}
ALCHEMY_API_KEY: ${alchemy_api_key}
ports:
- 5001:5001
depends_on:
- rair-node
- mongo
networks:
- rair-local
rair-stream:
container_name: 'rair-stream'
build:
context: rair-stream/
dockerfile: Dockerfile
environment:
PRODUCTION: "false"
MEDIA_SERVICE_PORT: ${media_service_port}
BASE_RAIRNODE_URL: ${base_rairnode_url}
GCP_PROJECT_ID: ${gcp_project_id}
GCP_IMAGE_BUCKET_NAME: ${gcp_image_bucket_name}
GCP_VIDEO_BUCKET_NAME: ${gcp_video_bucket_name}
GCP_CREDENTIALS: ${gcp_credentials}
GCP_GATEWAY: ${gcp_gateway}
USE_X509_CERT_AUTH: ${VAULT_MEDIA_SERVICE_use_x509_cert_auth}
PINATA_KEY: ${pinata_key}
PINATA_SECRET: ${pinata_secret}
PINATA_GATEWAY: ${pinata_gateway}
IPFS_SERVICE: ${ipfs_service}
IPFS_GATEWAY: ${ipfs_gateway}
IPFS_API: ${ipfs_api}
MONGO_LOG_COLLECTION: ${mongo_log_collection}
LOG_LEVEL: ${log_level}
VAULT_URL: ${VAULT_URL}
VAULT_MEDIA_SERVICE_APP_ROLE_ID: ${VAULT_MEDIA_SERVICE_APP_ROLE_ID}
VAULT_MEDIA_SERVICE_APP_ROLE_SECRET_ID: ${VAULT_MEDIA_SERVICE_APP_ROLE_SECRET_ID}
SENTRY_DSN: ${sentry_dsn}
REDIS_HOST: ${redisthhost}
REDIS_PORT: ${redisport}
ports:
- 5002:5002
networks:
- rair-local
rair-redis:
container_name: "rair-redis"
image: redis
command: redis-server --appendonly yes
restart: always
ports:
- 6379:6379
networks:
- rair-local
rair-front:
container_name: rair-front
build:
context: rair-front
dockerfile: Dockerfile.prod
environment:
VITE_SENTRY_ENABLED: ${sentry_enabled}
VITE_SENTRY_IO_ENDPOINT: ${sentry_endpoint}
VITE_SENTRY_IO_TRACE_RATE: ${sentry_trace_rate}
VITE_SENTRY_RELEASE: ${sentry_release}
VITE_GOOGLE_ANALYTICS: ${react-app-google-analytics}
VITE_GA_NAME: ${react-app-ga-name}
VITE_DISABLE_CREATOR_VIEWS: ${react-app-disable-creator-views}
VITE_HOME_PAGE: /
VITE_MATIC_MAIN_DIAMOND_FACTORY: ${matic_mainnet_diamond_factory_address}
VITE_MATIC_MAIN_DIAMOND_MARKETPLACE: ${matic_mainnet_diamond_marketplace_address}
VITE_NODE_SOCKET_URI: ${front_socket_uri}
volumes:
- ./rair-front/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
ports:
- 80:80
- 443:443
networks:
- rair-local
depends_on:
- rair-node
mongo:
container_name: mongo
image: mongo
restart: always
volumes:
- ./rair-node/dev/db-data:/data/db
- ./rair-node/dev/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
environment:
MONGO_INITDB_ROOT_USERNAME: ${localdbuser}
MONGO_INITDB_ROOT_PASSWORD: ${localdbpass}
MONGO_INITDB_DATABASE: rair-db
ports:
- 27017:27017
networks:
- rair-local
networks:
rair-local:
driver: bridge
Loading