1services:
2 curl:
3 image: quay.io/curl/curl:latest
4 container_name: curl
5 command:
6 - -s
7 - -L
8 - https://github.com/TecharoHQ/anubis/raw/main/data/botPolicies.json
9 - --output
10 - /out/botPolicy.json
11 volumes:
12 - "${PWD}:/out"
13 anubis:
14 image: ghcr.io/techarohq/anubis:latest
15 container_name: anubis
16 environment:
17 BIND: ":8080"
18 DIFFICULTY: "5"
19 METRICS_BIND: ":9090"
20 SERVE_ROBOTS_TXT: "true"
21 TARGET: "https://duckduckgo.com"
22 USE_REMOTE_ADDRESS: "true"
23 POLICY_FNAME: "/data/cfg/botPolicy.json"
24 OG_PASSTHROUGH: "true"
25 OG_EXPIRY_TIME: "24h"
26 ports:
27 - 8080:8080
28 # - 9090:9090
29 volumes:
30 - "${PWD}/botPolicy.json:/data/cfg/botPolicy.json:ro"
31 depends_on:
32 curl:
33 condition: service_completed_successfully