version: '3'

services:
  ebrelayera:
    build:
      context: .
      dockerfile: Dockerfile-bridgevmxgo
    ports:
      - "9901:9901"

  ebrelayerb:
    build:
      context: .
      dockerfile: Dockerfile-bridgevmxgo

  ebrelayerc:
    build:
      context: .
      dockerfile: Dockerfile-bridgevmxgo

  ebrelayerd:
    build:
      context: .
      dockerfile: Dockerfile-bridgevmxgo

  chain33:
    entrypoint: /root/entrypoint.sh
    environment:
      PARAFILE: "/root/chain33.para33.toml"
    expose:
      - "8802"
    ports:
      - "8801:8801"
      - "8901:8901"

  chain32:
    entrypoint: /root/entrypoint.sh
    environment:
      PARAFILE: "/root/chain33.para32.toml"

  chain31:
    entrypoint: /root/entrypoint.sh
    environment:
      PARAFILE: "/root/chain33.para31.toml"

  chain30:
    entrypoint: /root/entrypoint.sh
    environment:
      PARAFILE: "/root/chain33.para30.toml"
    expose:
      - "8802"

  chain29:
    entrypoint: /root/entrypoint.sh
    environment:
      PARAFILE: "/root/chain33.para29.toml"

  nginx:
    image: nginx:latest
    depends_on:
      - chain33
      - chain30
      - chain29
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf
    expose:
      - "8803"