summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-11 12:41:47 -0500
committerChristian Cleberg <[email protected]>2026-04-11 12:41:47 -0500
commit84330037cc1e904067c71e5854a3a0336f9a1ee5 (patch)
treeedb1eb9eb2bd9325b239a611a38a8e4d9586a0f7
parentb3bfd597d7b3fd42a8b7bce965305348509d4438 (diff)
downloadhutch-stats-84330037cc1e904067c71e5854a3a0336f9a1ee5.tar.gz
hutch-stats-84330037cc1e904067c71e5854a3a0336f9a1ee5.tar.bz2
hutch-stats-84330037cc1e904067c71e5854a3a0336f9a1ee5.zip
add compose.yml
-rw-r--r--compose.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/compose.yml b/compose.yml
new file mode 100644
index 0000000..90d10e9
--- /dev/null
+++ b/compose.yml
@@ -0,0 +1,24 @@
+services:
+ hutch-stats:
+ build:
+ context: .
+ container_name: hutch-stats
+ ports:
+ - "8000:8000"
+ environment:
+ API_KEY: ${API_KEY}
+ ENABLE_SCHEDULER: "true"
+ SRHT_TOKEN: ${SRHT_TOKEN}
+ TODO_SRHT_ENDPOINT: ${TODO_SRHT_ENDPOINT:-https://todo.sr.ht/query}
+ GIT_SRHT_ENDPOINT: ${GIT_SRHT_ENDPOINT:-https://git.sr.ht/query}
+ DATABASE_URL: sqlite:////data/srht_contrib.db
+ DEFAULT_ACTOR: ${DEFAULT_ACTOR}
+ POLL_INTERVAL_SECONDS: ${POLL_INTERVAL_SECONDS:-900}
+ ACTOR_ALIASES_JSON: ${ACTOR_ALIASES_JSON:-{}}
+ GIT_TRACKED_REPOSITORIES: ${GIT_TRACKED_REPOSITORIES:-[]}
+ volumes:
+ - hutch-stats-data:/data
+ restart: unless-stopped
+
+volumes:
+ hutch-stats-data: