A => .gitignore +4 -0
@@ 1,4 @@
+.venv/
+*.pyc
+__pycache__/
+config.ini
A => .gitmodules +12 -0
@@ 1,12 @@
+[submodule "core.sr.ht"]
+ path = core.sr.ht
+ url = https://git.sr.ht/~sircmpwn/core.sr.ht
+[submodule "meta.sr.ht"]
+ path = meta.sr.ht
+ url = https://git.sr.ht/~sircmpwn/meta.sr.ht
+[submodule "git.sr.ht"]
+ path = git.sr.ht
+ url = https://git.sr.ht/~sircmpwn/git.sr.ht
+[submodule "scm.sr.ht"]
+ path = scm.sr.ht
+ url = https://git.sr.ht/~sircmpwn/scm.sr.ht
A => core.sr.ht +1 -0
@@ 1,1 @@
+Subproject commit 44a630f8aa6532815bd7738a1c32f3e25a3b3b68
A => docker-compose.yml +31 -0
@@ 1,31 @@
+services:
+ postgres:
+ image: postgres:16-alpine
+ restart: unless-stopped
+ environment:
+ POSTGRES_USER: postgres
+ POSTGRES_PASSWORD: postgres
+ ports:
+ - "127.0.0.1:5432:5432"
+ volumes:
+ - postgres_data:/var/lib/postgresql/data
+ - ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
+ healthcheck:
+ test: ["CMD-SHELL", "pg_isready -U postgres"]
+ interval: 10s
+ timeout: 5s
+ retries: 5
+
+ redis:
+ image: redis:7-alpine
+ restart: unless-stopped
+ ports:
+ - "127.0.0.1:6379:6379"
+ healthcheck:
+ test: ["CMD", "redis-cli", "ping"]
+ interval: 10s
+ timeout: 5s
+ retries: 5
+
+volumes:
+ postgres_data:
A => git.sr.ht +1 -0
@@ 1,1 @@
+Subproject commit 493e9470b9eec0f2c9dc5912434560eff9d5341d
A => init-db.sh +11 -0
@@ 1,11 @@
+#!/bin/bash
+set -e
+
+for db in metasrht gitsrht; do
+ psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
+ CREATE DATABASE $db;
+ CREATE USER $db WITH PASSWORD '$db';
+ GRANT ALL PRIVILEGES ON DATABASE $db TO $db;
+ ALTER DATABASE $db OWNER TO $db;
+EOSQL
+done
A => meta.sr.ht +1 -0
@@ 1,1 @@
+Subproject commit 7fc93e4f0f807a5211f95ec855e425c66f1aa022
A => scm.sr.ht +1 -0
@@ 1,1 @@
+Subproject commit 07aa1944a2c6fefafd6dcf511d6819a64425e80b