version: "3"

services:
  indy-testnet-pool:
    container_name: ${CACTUS_INDY_TESTNET_NAME:-indy-testnet-pool}
    image: ${CACTUS_INDY_TESTNET_IMAGE_NAME:-indy-testnet-pool}
    build:
      context: ./
    ports:
    - "9701:9701"
    - "9702:9702"
    - "9703:9703"
    - "9704:9704"
    - "9705:9705"
    - "9706:9706"
    - "9707:9707"
    - "9708:9708"
    networks:
      indy_net:
        ipv4_address: 172.16.0.2
    volumes:
    - ./sandbox:/var/lib/indy/sandbox/

networks:
  indy_net:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: 172.16.0.0/24