Skip to content

Commit

Permalink
[ANCHOR-625] Fix docker compose stack (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipliu authored Mar 5, 2024
1 parent 325c28a commit 014bf80
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM gradle:7.6.0-jdk11-alpine AS build
ARG BASE_IMAGE=gradle:7.6.4-jdk11-alpine

FROM ${BASE_IMAGE} AS build
WORKDIR /code
COPY --chown=gradle:gradle . .

Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Anchor Platform can be run locally using Docker Compose. This will start an inst
Kotlin reference server.

```shell
docker build --build-arg BASE_IMAGE=gradle:7.6.4-jdk11 -t anchor-platform:local ./
docker-compose -f service-runner/src/main/resources/docker-compose.yaml up -d
```

Expand Down
13 changes: 7 additions & 6 deletions service-runner/src/main/resources/common/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '2.4'
services:
platform:
image: stellar/anchor-platform:edge
command: --sep-server --platform-server
image: anchor-platform:local
command: --sep-server --platform-server --event-processor
volumes:
- ../config:/config
ports:
Expand All @@ -15,7 +15,7 @@ services:
- "3000:80"

observer:
image: stellar/anchor-platform:edge
image: anchor-platform:local
build:
context: ../../../../../essential-tests/src/test
dockerfile: essential-tests/docker-compose-configs/Dockerfile
Expand All @@ -27,14 +27,14 @@ services:
- "host.docker.internal:host-gateway"

custody-server:
image: stellar/anchor-platform:edge
image: anchor-platform:local
command: "--custody-server"
volumes:
# add mounts for the new config directory
- ../config:/config

reference-server:
image: stellar/anchor-platform:edge
image: anchor-platform:local
command: "--kotlin-reference-server"
volumes:
# add mounts for the new config directory
Expand Down Expand Up @@ -72,7 +72,8 @@ services:
reference-db:
image: postgres:15.2-alpine
ports:
- "5433:5432"
- "5433:5433"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
command: -p 5433

0 comments on commit 014bf80

Please sign in to comment.