services:
  counter:
    build: .
    restart: unless-stopped
    ports:
      - "127.0.0.1:8787:8787"
    environment:
      ALLOWED_ORIGIN: https://example.com
      VISITOR_HASH_SALT: replace-with-at-least-32-random-characters
      INTERNAL_TOKEN: replace-with-a-separate-random-secret
      TRUSTED_PROXY_IPS: "172.18.0.1"
      DB_PATH: /data/visitors.sqlite
    volumes:
      - counter-data:/data

volumes:
  counter-data:
