Skip to content

Commit

Permalink
services/horizon: Fix Horizon connectivity to core in standalone docker
Browse files Browse the repository at this point in the history
The default value of STELLAR_CORE_URL (localhost:11626) in standalone network mode doesn't work. We need to explictly set STELLAR_CORE_URL to http://host.docker.internal:11626, to allow Horizon to access the host container's port to connect with the core container.
  • Loading branch information
urvisavla committed Jul 12, 2023
1 parent 87c156c commit 46d7133
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/horizon/docker/docker-compose.standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ services:
- HISTORY_ARCHIVE_URLS=http://host.docker.internal:1570
- NETWORK_PASSPHRASE=Standalone Network ; February 2017
- CAPTIVE_CORE_CONFIG_APPEND_PATH=/captive-core-standalone.cfg
- STELLAR_CORE_URL=http://host.docker.internal:11626
volumes:
- ./captive-core-standalone.cfg:/captive-core-standalone.cfg

Expand Down

0 comments on commit 46d7133

Please sign in to comment.