|
| 1 | +# Verified Mithril Signer node running on top of its own Cardano node |
| 2 | + |
| 3 | +version: "3.9" |
| 4 | + |
| 5 | +services: |
| 6 | + cardano-node-signer: |
| 7 | + image: cardano-node/1.35.3-modified |
| 8 | + container_name: cardano-node-signer-${SIGNER_ID} |
| 9 | + build: |
| 10 | + context: . |
| 11 | + dockerfile: Dockerfile.cardano |
| 12 | + user: ${CURRENT_UID} |
| 13 | + profiles: |
| 14 | + - cardano |
| 15 | + - all |
| 16 | + logging: |
| 17 | + driver: "json-file" |
| 18 | + options: |
| 19 | + max-size: "100m" |
| 20 | + max-file: "5" |
| 21 | + volumes: |
| 22 | + - ./cardano-configurations/network/${NETWORK}:/config |
| 23 | + - ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/db:/db |
| 24 | + - ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/ipc:/ipc |
| 25 | + - ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/pool:/pool |
| 26 | + environment: |
| 27 | + - CARDANO_SOCKET_PATH=/ipc/node.socket |
| 28 | + - CARDANO_NODE_SOCKET_PATH=/ipc/node.socket |
| 29 | + command: |
| 30 | + [ |
| 31 | + "run", |
| 32 | + "--config", |
| 33 | + "/config/cardano-node/config.json", |
| 34 | + "--topology", |
| 35 | + "/config/cardano-node/topology.json", |
| 36 | + "--database-path", |
| 37 | + "/db" |
| 38 | + ] |
| 39 | + |
| 40 | + mithril-signer: |
| 41 | + image: ghcr.io/input-output-hk/mithril-signer:${IMAGE_ID} |
| 42 | + container_name: mithril-signer-${SIGNER_ID} |
| 43 | + restart: always |
| 44 | + user: ${CURRENT_UID} |
| 45 | + profiles: |
| 46 | + - mithril |
| 47 | + - all |
| 48 | + environment: |
| 49 | + - RUST_BACKTRACE=1 |
| 50 | + - AGGREGATOR_ENDPOINT=http://mithril-aggregator:8080/aggregator |
| 51 | + - NETWORK=${NETWORK} |
| 52 | + - KES_SECRET_KEY_PATH=/mithril-signer-${SIGNER_ID}/cardano/pool/kes.skey |
| 53 | + - OPERATIONAL_CERTIFICATE_PATH=/mithril-signer-${SIGNER_ID}/cardano/pool/opcert.cert |
| 54 | + - RUN_INTERVAL=120000 |
| 55 | + - DB_DIRECTORY=/mithril-signer-${SIGNER_ID}/cardano/db |
| 56 | + - DATA_STORES_DIRECTORY=/mithril-signer-${SIGNER_ID}/mithril/stores |
| 57 | + - STORE_RETENTION_LIMIT=5 |
| 58 | + - CARDANO_NODE_SOCKET_PATH=/ipc/node.socket |
| 59 | + - CARDANO_CLI_PATH=/app/bin/cardano-cli |
| 60 | + volumes: |
| 61 | + - ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/mithril:/mithril-signer-${SIGNER_ID}/mithril |
| 62 | + - ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/db:/mithril-signer-${SIGNER_ID}/cardano/db |
| 63 | + - ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/pool:/mithril-signer-${SIGNER_ID}/cardano/pool |
| 64 | + - ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/ipc:/ipc |
| 65 | + - ./cardano-configurations/network/${NETWORK}:/config |
| 66 | + logging: |
| 67 | + driver: "json-file" |
| 68 | + options: |
| 69 | + max-size: "100m" |
| 70 | + max-file: "5" |
| 71 | + |
| 72 | +networks: |
| 73 | + default: |
| 74 | + external: |
| 75 | + name: mithril_network |
0 commit comments