pub / ktistec-tweaks

Tweaks for the ActivityPub server ktistec
git clone https://src.jayvii.de/pub/ktistec-tweaks.git
Home | Log | Files | Exports | Refs | Submodules | README | RSS

commit 51bb1abbc5b6a268037f9fcac2d83585ba01fbb8
parent b8ee266809693dcfeaa6315e684313888c32306b
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 20 Jul 2024 10:32:41 +0200

feat: add docker-compose setup

Diffstat:
A.gitmodules | 3+++
MREADME.md | 12+++++++++++-
Adocker/docker-compose.yaml | 28++++++++++++++++++++++++++++
Adocker/ktistec | 1+
4 files changed, 43 insertions(+), 1 deletion(-)

diff --git a/.gitmodules b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "docker/ktistec"] + path = docker/ktistec + url = https://github.com/toddsundsted/ktistec diff --git a/README.md b/README.md @@ -5,6 +5,16 @@ Small tweaks and hacks for [ktistec](https://github.com/toddsundsted/ktistec). Please send patches or remarks to [jayvii+ktistec-tweaks[AT]posteo[DOT]de](mailto:jayvii+ktistec-tweaks[AT]posteo[DOT]de). +## Docker + +You can run ktistec via the provided +[`docker-compose`](https://docs.docker.com/compose/) + +```bash + cd docker/ + docker-compose up -f docker-compose.yaml -d +``` + ## CSS Minify CSS: @@ -35,7 +45,7 @@ cat ${KTISTEC_CSS}/semantic-*.min.css >> ${KTISTEC_CSS}/tmp mv ${KTISTEC_CSS}/tmp ${KTISTEC_CSS}/semantic-*.min.css ``` -Docker: +Docker (via [this repo's docker-compose](#docker) file): ```bash docker cp ./css/purpleish.min.css ktistec:/app/public/3rd/purpleish.min.css diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml @@ -0,0 +1,28 @@ +services: + + # ktistec: https://github.com/toddsundsted/ktistec + ktistec: + + # Use my pre-built images: https://hub.docker.com/r/jv00/ktistec + image: jv00/ktistec:latest + # Or build it yourself (it is really easy and only takes a few minutes!) + #build: ./ktistec/ + + # container name + container_name: ktistec + + # always restart upon failures + restart: unless-stopped + + # bind to local port 3000 + ports: + - 3000:3000 + + # mount volumes for db and uploads so they survive restarts + volumes: + - type: bind + source: /var/www/ktistec/db + target: /db + - type: bind + source: /var/www/ktistec/uploads + target: /uploads diff --git a/docker/ktistec b/docker/ktistec @@ -0,0 +1 @@ +Subproject commit 238dad8251f5f6cf2b890c934abc76fdf608fa80