Skip to content

Commit

Permalink
added image to docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
slbmax committed Jul 25, 2024
1 parent 7108db3 commit a1d6e20
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 18 deletions.
37 changes: 23 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,26 @@ make run

## Running with Docker Compose

To pull the latest image of the service from the GitHub Container Registry, **firstly** execute the following command:

```shell
docker login ghcr.io
```

Example of `docker-compose.yml` file:

```yml
services:
rabbitmq:
image: rabbitmq:3.13.6-management-alpine
hostname: rabbitmq
container_name: 'rabbitmq'
volumes:
- rabbitmq-data:/var/lib/rabbitmq
ports:
- 5672:5672
- 15672:15672

signer-db:
image: tokend/postgres-ubuntu:9.6
hostname: signer-db
Expand All @@ -136,34 +152,27 @@ services:
- 20000:5432

signer:
build:
context: .
dockerfile: Dockerfile.vendor
image: ghcr.io/hyle-team/bridgeless-signer:7108db395fe92c56875657190c4d9305376c4323
# build:
# context: .
# dockerfile: Dockerfile.vendor
hostname: signer
container_name: signer
restart: unless-stopped
depends_on:
signer-db:
condition: service_healthy
rabbitmq:
condition: service_started
environment:
KV_VIPER_FILE: '/config.yaml'
volumes:
- ./config.yaml:/config.yaml
- ./config.docker.local.yaml:/config.yaml
ports:
- 8111:8111
- 8222:8222
entrypoint: sh -c "bridgeless-signer migrate up && bridgeless-signer run service"

rabbitmq:
image: rabbitmq:3-management-alpine
hostname: rabbitmq
container_name: 'rabbitmq'
volumes:
- rabbitmq-data:/var/lib/rabbitmq
ports:
- 5672:5672
- 15672:15672

volumes:
rabbitmq-data:
signer-data:
Expand Down
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
rabbitmq:
image: rabbitmq:3-management-alpine
image: rabbitmq:3.13.6-management-alpine
hostname: rabbitmq
container_name: 'rabbitmq'
volumes:
Expand Down Expand Up @@ -30,9 +30,10 @@ services:
- 20000:5432

signer:
build:
context: .
dockerfile: Dockerfile.vendor
image: ghcr.io/hyle-team/bridgeless-signer:7108db395fe92c56875657190c4d9305376c4323
# build:
# context: .
# dockerfile: Dockerfile.vendor
hostname: signer
container_name: signer
restart: unless-stopped
Expand Down

0 comments on commit a1d6e20

Please sign in to comment.