Add Kaizoku guide

This commit is contained in:
RealStickman 2022-11-20 18:49:51 +01:00
parent 5450991a37
commit 86d6beb608

View File

@ -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
```