Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
d9b943ab
Commit
d9b943ab
authored
Aug 17, 2023
by
Will Cory
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(indexer): Run docker-compose for indexer correctly
parent
656eda80
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
19 deletions
+11
-19
cli.go
indexer/cli/cli.go
+1
-1
docker-compose.yml
indexer/docker-compose.yml
+6
-14
indexer.toml
indexer/indexer.toml
+4
-4
No files found.
indexer/cli/cli.go
View file @
d9b943ab
...
@@ -105,7 +105,7 @@ func NewCli(GitVersion string, GitCommit string, GitDate string) *Cli {
...
@@ -105,7 +105,7 @@ func NewCli(GitVersion string, GitCommit string, GitDate string) *Cli {
Action
:
runApi
,
Action
:
runApi
,
},
},
{
{
Name
:
"index
er
"
,
Name
:
"index"
,
Flags
:
flags
,
Flags
:
flags
,
Description
:
"Runs the indexing service"
,
Description
:
"Runs the indexing service"
,
Action
:
runIndexer
,
Action
:
runIndexer
,
...
...
indexer/docker-compose.yml
View file @
d9b943ab
...
@@ -20,22 +20,14 @@ services:
...
@@ -20,22 +20,14 @@ services:
indexer
:
indexer
:
build
:
build
:
context
:
..
context
:
..
dockerfile
:
indexer/Dockerfile.refresh
dockerfile
:
indexer/Dockerfile
command
:
[
"
indexer-refresh"
,
"
processor"
]
command
:
[
"
indexer"
,
"
index"
]
# healthcheck:
# Add healthcheck once figure out good way how
# maybe after we add metrics?
ports
:
-
8080:8080
environment
:
environment
:
-
INDEXER_DB_PORT=5432
-
INDEXER_RPC_URL_L1=$INDEXER_RPC_URL_L1
-
INDEXER_DB_USER=db_username
-
INDEXER_RPC_URL_L2=$INDEXER_RPC_URL_L2
-
INDEXER_DB_PASSWORD=db_password
-
INDEXER_CONFIG=/indexer/indexer.toml
-
INDEXER_DB_NAME=db_name
-
INDEXER_DB_HOST=postgres
-
INDEXER_CONFIG=/configs/indexer.toml
volumes
:
volumes
:
-
./indexer.toml:/
configs
/indexer.toml
-
./indexer.toml:/
indexer
/indexer.toml
depends_on
:
depends_on
:
postgres
:
postgres
:
condition
:
service_healthy
condition
:
service_healthy
...
...
indexer/indexer.toml
View file @
d9b943ab
...
@@ -9,11 +9,11 @@ l1-rpc = "${INDEXER_RPC_URL_L1}"
...
@@ -9,11 +9,11 @@ l1-rpc = "${INDEXER_RPC_URL_L1}"
l2-rpc
=
"${INDEXER_RPC_URL_L2}"
l2-rpc
=
"${INDEXER_RPC_URL_L2}"
[db]
[db]
host
=
"
127.0.0.1
"
host
=
"
postgres
"
port
=
5432
port
=
5432
user
=
"
postgres
"
user
=
"
db_username
"
password
=
"
postgres
"
password
=
"
db_password
"
name
=
"
indexer
"
name
=
"
db_name
"
[api]
[api]
host
=
"127.0.0.1"
host
=
"127.0.0.1"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment