volumes:
  local-dev:
    name: "linea-local-dev"
  logs:
    name: "linea-logs"

networks:
  linea:
    driver: bridge
    ipam:
      config:
        - subnet: 11.11.11.0/24
  l1-network:
    driver: bridge
    ipam:
      config:
        - subnet: 10.10.10.0/24

services:
  prover:
    container_name: prover
    hostname: prover
    image: consensys/linea-prover:latest
    build:
      context: ../
      dockerfile: ./prover/Dockerfile
      additional_contexts:
        prover: ../prover/
        go-corset: ../go-corset/
        constraints: ../constraints/
    environment:
      VERSION: "0.2.0" # TODO @gbotrel hunt all the hard coded version strings
      WORKER_ID: local
    volumes:
      - ./prover-assets:/opt/linea/prover/prover-assets/:ro
      - ./config:/opt/linea/prover/config/:ro
    networks:
      linea:
        ipv4_address: 11.11.11.108
