-
Notifications
You must be signed in to change notification settings - Fork 43
[ANCHOR-868] Fix broken docker-compose file #1583
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
Changes from all commits
5716897
c5579da
17874e7
ee4729d
1e5f278
9cc3a97
8270645
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 |
|---|---|---|
| @@ -1,25 +1,23 @@ | ||
| <component name="ProjectRunConfigurationManager"> | ||
| <configuration default="false" name="Test Profile: deployment" type="JetRunConfigurationType" folderName="Run Test Profile"> | ||
| <envs> | ||
| <env name="app.enableTest" value="true" /> | ||
| <env name="TEST_PROFILE_NAME" value="deployment" /> | ||
| <env name="KT_REFERENCE_SERVER_CONFIG" value="service-runner/src/main/resources/config/reference-config.yaml" /> | ||
| </envs> | ||
| <option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.run_profiles.RunTestProfile" /> | ||
| <module name="java-stellar-anchor-sdk.service-runner.main" /> | ||
| <shortenClasspath name="ARGS_FILE" /> | ||
| <extension name="net.ashald.envfile"> | ||
| <option name="IS_ENABLED" value="false" /> | ||
| <option name="IS_SUBST" value="false" /> | ||
| <option name="IS_PATH_MACRO_SUPPORTED" value="false" /> | ||
| <option name="IS_IGNORE_MISSING_FILES" value="false" /> | ||
| <option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" /> | ||
| <ENTRIES> | ||
| <ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" /> | ||
| </ENTRIES> | ||
| </extension> | ||
| <method v="2"> | ||
| <option name="Make" enabled="true" /> | ||
| </method> | ||
| </configuration> | ||
| <configuration default="false" name="Test Profile: deployment" type="JetRunConfigurationType" folderName="Run Test Profile"> | ||
| <envs> | ||
| <env name="TEST_PROFILE_NAME" value="deployment" /> | ||
| </envs> | ||
| <option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.run_profiles.RunTestProfile" /> | ||
| <module name="java-stellar-anchor-sdk.service-runner.main" /> | ||
| <shortenClasspath name="ARGS_FILE" /> | ||
| <extension name="net.ashald.envfile"> | ||
| <option name="IS_ENABLED" value="false" /> | ||
| <option name="IS_SUBST" value="false" /> | ||
| <option name="IS_PATH_MACRO_SUPPORTED" value="false" /> | ||
| <option name="IS_IGNORE_MISSING_FILES" value="false" /> | ||
| <option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" /> | ||
| <ENTRIES> | ||
| <ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" /> | ||
| </ENTRIES> | ||
| </extension> | ||
| <method v="2"> | ||
| <option name="Make" enabled="true" /> | ||
| </method> | ||
| </configuration> | ||
| </component> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| services: | ||
| v2-stable-servers: | ||
| extends: | ||
| file: service-runner/src/main/resources/common/docker-compose.yaml | ||
| service: dev-servers | ||
| image: stellar/anchor-platform:2.11.2 | ||
| profiles: | ||
| - 'v2-stable' | ||
| labels: | ||
| description: | | ||
| Runs all of the Anchor Platform services for the v2 stable release. | ||
| To start the services: `docker-compose --profile v2-stable up` | ||
| maintainer: "jamie@stellar.org" | ||
|
|
||
| stable-servers: | ||
| extends: | ||
| file: service-runner/src/main/resources/common/docker-compose.yaml | ||
| service: dev-servers | ||
| image: stellar/anchor-platform:latest | ||
| profiles: | ||
| - 'latest' | ||
| labels: | ||
| description: | | ||
| Runs all of the Anchor Platform services for the latest release. | ||
| To start the services: `docker-compose --profile latest up` | ||
| maintainer: "jamie@stellar.org" | ||
|
|
||
| local-built-servers: | ||
| extends: | ||
| file: service-runner/src/main/resources/common/docker-compose.yaml | ||
| service: dev-servers | ||
| image: stellar/anchor-platform:local | ||
| profiles: | ||
| - 'local' | ||
| labels: | ||
| description: | | ||
| Runs all of the Anchor Platform services from the locally built image. | ||
| To start the services: `docker-compose --profile local up` | ||
| maintainer: "jamie@stellar.org" | ||
|
|
||
| platform: | ||
| profiles: | ||
| - '' | ||
| extends: | ||
| file: service-runner/src/main/resources/common/docker-compose.yaml | ||
| service: platform | ||
| depends_on: | ||
| - db | ||
| - kafka | ||
| - reference-server | ||
| - sep24-reference-ui | ||
|
|
||
| observer: | ||
| profiles: | ||
| - '' | ||
| extends: | ||
| file: service-runner/src/main/resources/common/docker-compose.yaml | ||
| service: observer | ||
| depends_on: | ||
| - db | ||
| - kafka | ||
|
|
||
| reference-server: | ||
| profiles: | ||
| - '' | ||
| extends: | ||
| file: service-runner/src/main/resources/common/docker-compose.yaml | ||
| service: reference-server | ||
| depends_on: | ||
| - reference-db | ||
|
|
||
| sep24-reference-ui: | ||
| extends: | ||
| file: service-runner/src/main/resources/common/docker-compose.yaml | ||
| service: sep24-reference-ui | ||
|
|
||
| kafka: | ||
| extends: | ||
| file: service-runner/src/main/resources/common/docker-compose.yaml | ||
| service: kafka | ||
|
|
||
| db: | ||
| extends: | ||
| file: service-runner/src/main/resources/common/docker-compose.yaml | ||
| service: db | ||
|
|
||
| reference-db: | ||
| extends: | ||
| file: service-runner/src/main/resources/common/docker-compose.yaml | ||
| service: reference-db |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,12 +51,31 @@ contribute to this project. | |
|
|
||
| ## Quickstart | ||
|
|
||
| Anchor Platform can be run locally using Docker Compose. This will start an instance of the Anchor Platform and the | ||
| Kotlin reference server. | ||
| Anchor Platform can be run locally using Docker Compose. | ||
|
|
||
| ### For version 2.x.x stable release | ||
| ```shell | ||
| docker build --build-arg BASE_IMAGE=gradle:7.6.4-jdk17 -t anchor-platform:local ./ | ||
| docker compose -f service-runner/src/main/resources/docker-compose.yaml up -d | ||
|
Contributor
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. Should we provide a way for developers to start the stack against a locally built image?
Contributor
Author
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. I think this is good idea as I was thinking about it. I will add a local profile. |
||
| # In the root directory of the project | ||
| docker compose --profile v2-stable up -d | ||
| ``` | ||
|
|
||
| ### For latest release | ||
| ```shell | ||
| # In the root directory of the project | ||
| docker compose --profile latest up -d | ||
| ``` | ||
|
|
||
| ### For locally built image | ||
| To build the Anchor Platform image locally, run the following command in the root directory of the project. | ||
| ```shell | ||
| # In the root directory of the project | ||
| docker build -t stellar/anchor-platform:local . | ||
| ``` | ||
|
|
||
| Then, run the following command to start the Anchor Platform. | ||
| ```shell | ||
| # In the root directory of the project | ||
| docker compose --profile local up -d | ||
| ``` | ||
|
|
||
| The [Stellar Demo Wallet](https://demo-wallet.stellar.org) can be used to interact with the Anchor Platform. To get | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.