-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feat/gardenv1 #6
base: main
Are you sure you want to change the base?
Changes from 6 commits
9230d71
b8ee0ce
afde747
87f0169
a122d18
9d6f8a2
b49a426
c2f2b26
9dbb181
68810df
d4e4a5f
6cfbca1
a965b4e
bcfaf94
8dfe3be
bd2c85e
65592ac
c8a55d5
b69b835
75d9945
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,12 +19,12 @@ services: | |
arbitrum: | ||
image: ghcr.io/catalogfi/garden_sol:latest | ||
container_name: arbitrum | ||
environment: | ||
environment: | ||
CHAIN_ID: 31338 | ||
LIGHT: "false" | ||
ports: | ||
- 8546:8545 | ||
|
||
arbitrum-explorer: | ||
image: otterscan/otterscan:latest | ||
container_name: arbitrum-explorer | ||
|
@@ -38,7 +38,7 @@ services: | |
ethereum: | ||
image: ghcr.io/catalogfi/garden_sol:latest | ||
container_name: ethereum | ||
environment: | ||
environment: | ||
CHAIN_ID: 31337 | ||
LIGHT: "true" | ||
ports: | ||
Comment on lines
+61
to
64
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Clarification Needed on I've noticed that the 🔗 Analysis chainLGTM! Please clarify the difference in LIGHT settings. The addition of environment variables for the ethereum service is good. The CHAIN_ID 31337 is appropriate for a local Hardhat network. Could you please clarify why the LIGHT setting is "true" for ethereum but "false" for arbitrum? This difference might impact performance or functionality. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for other occurrences of LIGHT environment variable
rg --type yaml 'LIGHT:' resources/docker-compose.yml
Length of output: 93 |
||
|
@@ -116,7 +116,7 @@ services: | |
ports: | ||
- 3000:3000 | ||
restart: unless-stopped | ||
|
||
postgres: | ||
image: postgres:alpine | ||
container_name: postgres | ||
|
@@ -129,6 +129,18 @@ services: | |
volumes: | ||
- ./volumes/orderbook_data:/var/lib/postgresql/data | ||
|
||
garden-db: | ||
image: postgres:alpine | ||
container_name: garden-db | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: garden | ||
ports: | ||
- 5433:5432 | ||
volumes: | ||
- ./volumes/ponder_data:/var/lib/postgresql/data | ||
|
||
redis: | ||
image: redis:alpine | ||
container_name: redis | ||
|
@@ -161,6 +173,47 @@ services: | |
extra_hosts: | ||
- "host.docker.internal:host-gateway" | ||
|
||
# following services will be part of gardenv2 stack | ||
garden-evm-watcher: | ||
image: ghcr.io/catalogfi/garden-evm-watcher:latest | ||
container_name: garden-evm-watcher | ||
depends_on: | ||
- ethereum | ||
- arbitrum | ||
- chopsticks | ||
- garden-db | ||
restart: unless-stopped | ||
extra_hosts: | ||
- "host.docker.internal:host-gateway" | ||
|
||
matcher: | ||
image: ghcr.io/catalogfi/matcher:latest | ||
container_name: matcher | ||
depends_on: | ||
- garden-evm-watcher | ||
restart: unless-stopped | ||
extra_hosts: | ||
- "host.docker.internal:host-gateway" | ||
|
||
bit-ponder: | ||
image: ghcr.io/catalogfi/bit-ponder:latest | ||
container_name: bit-ponder | ||
depends_on: | ||
- garden-evm-watcher | ||
- matcher | ||
restart: unless-stopped | ||
extra_hosts: | ||
- "host.docker.internal:host-gateway" | ||
|
||
cobiv2: | ||
image: ghcr.io/catalogfi/cobiv2:latest | ||
container_name: cobiv2 | ||
depends_on: | ||
- garden-evm-watcher | ||
restart: unless-stopped | ||
extra_hosts: | ||
- "host.docker.internal:host-gateway" | ||
|
||
nginx: | ||
image: nginx:latest | ||
container_name: nginx | ||
|
@@ -182,7 +235,6 @@ services: | |
- orderbook | ||
- cobi | ||
|
||
|
||
networks: | ||
default: | ||
name: merry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Refactor service exclusion logic for maintainability
The condition to exclude services is becoming lengthy and harder to maintain:
Consider refactoring this by using a slice or map to store the service names and check for inclusion. This approach enhances readability and makes it easier to manage the list of services.
Example using a slice: