-
Notifications
You must be signed in to change notification settings - Fork 888
/
docker-compose-prod.yaml
216 lines (216 loc) · 9.47 KB
/
docker-compose-prod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
services:
rairnode:
container_name: 'rairnode'
build:
context: rairnode/
dockerfile: Dockerfile
volumes:
- ./rairnode/db:/usr/src/rairnode/db
- ./rairnode/bin/Videos:/usr/src/rairnode/bin/Videos
environment:
PRODUCTION: "true"
MONGO_URI: ${db}
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}
INFURA_PROJECT_ID: ${infura_project_id}
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}
ZOOM_MEETING_ID: ${zoom_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
networks:
- rair-local
blockchain-networks:
container_name: 'blockchain-networks'
build:
context: blockchain-networks-service/
dockerfile: Dockerfile
environment:
PRODUCTION: "true"
MONGO_URI: ${db}
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_MAINNET_DIAMOND_FACTORY_ADDRESS: ${binance_mainnet_diamond_factory_address}
BINANCE_MAINNET_DIAMOND_MARKETPLACE_ADDRESS: ${binance_mainnet_diamond_marketplace_address}
BINANCE_TESTNET_DIAMOND_FACTORY_ADDRESS: ${binance_testnet_diamond_factory_address}
BINANCE_TESTNET_DIAMOND_MARKETPLACE_ADDRESS: ${binance_testnet_diamond_marketplace_address}
SEPOLIA_DIAMOND_FACTORY_ADDRESS: ${sepolia_diamond_factory_address}
SEPOLIA_DIAMOND_MARKETPLACE_ADDRESS: ${sepolia_diamond_marketplace_address}
MATIC_MUMBAI_DIAMOND_FACTORY_ADDRESS: ${matic_mumbai_diamond_factory_address}
MATIC_MUMBAI_DIAMOND_MARKETPLACE_ADDRESS: ${matic_mumbai_diamond_marketplace_address}
MATIC_MAINNET_DIAMOND_FACTORY_ADDRESS: ${matic_mainnet_diamond_factory_address}
MATIC_MAINNET_DIAMOND_MARKETPLACE_ADDRESS: ${matic_mainnet_diamond_marketplace_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}
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}
REDIS_HOST: ${redisthhost}
REDIS_PORT: ${redisport}
ALCHEMY_API_KEY: ${alchemy_api_key}
BASE_DIAMOND_FACTORY_ADDRESS: ${base_diamond_factory_address}
BASE_DIAMOND_MARKETPLACE_ADDRESS: ${base_diamond_marketplace_address}
ports:
- 5001:5001
depends_on:
- rairnode
networks:
- rair-local
media-service:
container_name: 'media-service'
build:
context: media-service/
dockerfile: Dockerfile
environment:
PRODUCTION: "true"
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
minting-network:
container_name: minting-network
build:
context: minting-marketplace
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_MATIC_MAIN_DIAMOND_FACTORY: ${matic_mainnet_diamond_factory_address}
VITE_MATIC_MAIN_DIAMOND_MARKETPLACE: ${matic_mainnet_diamond_marketplace_address}
ports:
- 80:3001
networks:
- rair-local
networks:
rair-local:
driver: bridge