aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/compose.yaml36
-rw-r--r--misc/sellershut.toml20
2 files changed, 56 insertions, 0 deletions
diff --git a/misc/compose.yaml b/misc/compose.yaml
new file mode 100644
index 0000000..1fccb81
--- /dev/null
+++ b/misc/compose.yaml
@@ -0,0 +1,36 @@
+name: sellershut
+
+services:
+ database:
+ image: docker.io/postgres:18.1-alpine
+ restart: always
+ shm_size: 128mb
+ environment:
+ POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
+ PGDATA: /data/postgres
+ ports:
+ - 5432:5432
+ networks:
+ - sellershut
+ volumes:
+ - db:/data/postgres
+ healthcheck:
+ test: ["CMD-SHELL", "pg_isready -U postgres"]
+ interval: 10s
+ timeout: 5s
+ retries: 3
+
+ adminer:
+ image: docker.io/adminer:5.4.1
+ restart: always
+ ports:
+ - 8080:8080
+ networks:
+ - sellershut
+
+volumes:
+ db:
+ driver: local
+
+networks:
+ sellershut:
diff --git a/misc/sellershut.toml b/misc/sellershut.toml
new file mode 100644
index 0000000..0fdef72
--- /dev/null
+++ b/misc/sellershut.toml
@@ -0,0 +1,20 @@
+[server]
+domain = "localhost"
+port = 2210
+request-timeout = 10
+log-level = "debug"
+system-name = "sellershut"
+environment = "dev"
+
+[oauth]
+redirect-url = "https://example.com"
+
+[oauth.discord]
+client-id = ""
+client-secret = ""
+token-url = "https://example.com"
+auth-url = "https://example.com"
+
+[database]
+url = "postgres://postres:password@localhost:5432/sellershut"
+pool-size = 100