Skip to content
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

Chore ami docker compose #842

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions docker/docker-compose.ami.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Services.
# ------------------------------------------------------------------------------
services:
postgres:
image: postgres:16.3
stop_grace_period: 5s
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: signer
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready --username=postgres --dbname=signer"]
interval: 5s
timeout: 1s
retries: 5

sbtc-signer:
image: blockstack/sbtc:signer-latest
stop_grace_period: 5s
entrypoint: "/bin/bash -c '/usr/local/bin/signer -c /signer-config.toml --migrate-db'"
environment:
RUST_LOG: warn,signer=debug
SIGNER_SIGNER__P2P__LISTEN_ON: tcp://0.0.0.0:4122
SIGNER_SIGNER__DB_ENDPOINT: postgresql://postgres:postgres@postgres:5432/signer
SIGNER_SIGNER__PRIVATE_KEY: 3ec0ca5770a356d6cd1a9bfcbf6cd151eb1bd85c388cc00648ec4ef5853fdb7401
# this is incorrect
SIGNER_EMILY__ENDPOINTS: http://localhost:3031
# SIGNER_BLOCKLIST_CLIENT__ENDPOINT: "http://blocklist-client:3032"
volumes:
- ./sbtc/signer/signer-config.toml:/signer-config.toml
ports:
- "8801:8801"
depends_on:
postgres:
condition: service_completed_successfully

blocklist-client:
image: blockstack/sbtc:blocklist-client-latest
entrypoint: "/bin/bash -c '/usr/local/bin/blocklist-client -c /blocklist-client-config.toml'"
volumes:
- ./config/blocklist-client-config.toml:/blocklist-client-config.toml
ports:
- "3032:3032"
Loading