From 86d6beb6080651e8fe32e04bd3f74a126ba372ac Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 20 Nov 2022 18:49:51 +0100 Subject: [PATCH] Add Kaizoku guide --- pages/02.linux/kaizoku/default.en.md | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pages/02.linux/kaizoku/default.en.md diff --git a/pages/02.linux/kaizoku/default.en.md b/pages/02.linux/kaizoku/default.en.md new file mode 100644 index 0000000..c8bff84 --- /dev/null +++ b/pages/02.linux/kaizoku/default.en.md @@ -0,0 +1,48 @@ +--- +title: Kaizoku +visible: false +--- + +[toc] +## Podman +### Network and Pod +`# podman network create net_kaizoku` +`# podman pod create --name pod_kaizoku --network net_kaizoku -p 3000:3000` + +#### Port Mappings +``` +3000: Kaizoku WebUI +``` + +### Database +``` +# podman run --name kaizoku-db \ + -e POSTGRES_USER=kaizoku \ + -e POSTGRES_PASSWORD=kaizoku \ + -e POSTGRES_DB=kaizoku \ + -v /mnt/kaizuko_db:/var/lib/postgresql/data \ + --pod pod_kaizoku \ + -d docker.io/postgres:15 +``` + +### Redis +``` +# podman run --name kaizoku-redis \ + -v /mnt/kaizoku_redis:/data \ + --pod pod_kaizoku \ + -d docker.io/redis:7-alpine +``` + +### Application +``` +# podman run --name kaizoku-app \ + -e DATABASE_URL=postgresql://kaizoku:kaizoku@kaizoku-db:5432/kaizoku \ + -e KAIZOKU_PORT=3000 \ + -e REDIS_HOST=kaizoku-redis \ + -e REDIS_PORT=6379 \ + -v /mnt/kaizoku_app/data:/data \ + -v /mnt/kaizoku_app/config:/config \ + -v /mnt/kaizoku_app/logs:/logs \ + --pod pod_kaizoku \ + -d ghcr.io/oae/kaizoku:latest +```