version: '3.5'

services:
  explorer:
    container_name: adamoracle-explorer
    image: adamoracle/explorer
    build:
      context: $EXPLORER_SOURCE_PATH
      dockerfile: explorer/Dockerfile
    entrypoint: yarn workspace adamoracle-contracts_v1/explorer dev:compose
    restart: always
    ports:
      - 8080:3001
    depends_on:
      - explorer-db
    environment:
      - EXPLORER_COOKIE_SECRET
      - EXPLORER_SERVER_PORT
      - PGPASSWORD=$EXPLORER_PGPASSWORD
