version: '2'

services:
  bitcoin:
    extends:
      file: docker-compose.tmpl.yml
      service: bitcoin-base-mainnet

  bitcoin-testnet:
    extends:
      file: docker-compose.tmpl.yml
      service: bitcoin-base-testnet

  indexd:
    extends:
      file: docker-compose.tmpl.yml
      service: indexd-base-mainnet

  indexd-testnet:
    extends:
      file: docker-compose.tmpl.yml
      service: indexd-base-testnet

  counterparty:
    extends:
      file: docker-compose.tmpl.yml
      service: counterparty-base-mainnet
    links:
      - bitcoin

  counterparty-testnet:
    extends:
      file: docker-compose.tmpl.yml
      service: counterparty-base-testnet
    links:
      - bitcoin-testnet

volumes:
  bitcoin-data:
  indexd-data:
  counterparty-data:

version: '2'

services:
  bitcoin:
    extends:
      file: docker-compose.tmpl.yml
      service: bitcoin-base-mainnet

  bitcoin-testnet:
    extends:
      file: docker-compose.tmpl.yml
      service: bitcoin-base-testnet

  indexd:
    extends:
      file: docker-compose.tmpl.yml
      service: indexd-base-mainnet

  indexd-testnet:
    extends:
      file: docker-compose.tmpl.yml
      service: indexd-base-testnet

  counterparty:
    extends:
      file: docker-compose.tmpl.yml
      service: counterparty-base-mainnet
    links:
      - bitcoin
      - indexd

  counterparty-testnet:
    extends:
      file: docker-compose.tmpl.yml
      service: counterparty-base-testnet
    links:
      - bitcoin-testnet
      - indexd-testnet

volumes:
  bitcoin-data:
  indexd-data:
  counterparty-data:

Add container links to indexd
Add container links to indexd
