services:
  wsp-incremental:
    build:
      context: .
      dockerfile: wsp/Dockerfile
    image: wsp-scraper:latest
    container_name: wsp-incremental
    restart: 'no'
    network_mode: host          # easy access to architools_postgres on 10.10.10.166:5432
    environment:
      DATABASE_URL: ${DATABASE_URL}
      SEAP_USER: ${SEAP_USER}
      SEAP_PASS: ${SEAP_PASS}
      SEAP_CERT_KEY: ${SEAP_CERT_KEY}
    command: ["python", "-m", "wsp.runner", "incremental", "all"]
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "5"
