2022-11-20 18:49:51 +01:00
|
|
|
---
|
|
|
|
title: Kaizoku
|
|
|
|
visible: false
|
|
|
|
---
|
|
|
|
|
|
|
|
[toc]
|
2022-12-16 11:50:40 +01:00
|
|
|
|
2022-11-20 18:49:51 +01:00
|
|
|
## Podman
|
2022-12-16 11:50:40 +01:00
|
|
|
|
2022-11-20 18:49:51 +01:00
|
|
|
### Network and Pod
|
2022-12-16 11:50:40 +01:00
|
|
|
|
2022-11-20 18:49:51 +01:00
|
|
|
`# podman network create net_kaizoku`
|
2022-12-16 11:50:40 +01:00
|
|
|
`# podman pod create --name pod_kaizoku --network net_kaizoku -p 3000:3000`
|
2022-11-20 18:49:51 +01:00
|
|
|
|
|
|
|
#### Port Mappings
|
2022-12-16 11:50:40 +01:00
|
|
|
|
2022-11-20 18:49:51 +01:00
|
|
|
```
|
|
|
|
3000: Kaizoku WebUI
|
|
|
|
```
|
|
|
|
|
|
|
|
### Database
|
2022-12-16 11:50:40 +01:00
|
|
|
|
|
|
|
```sh
|
2022-11-20 18:49:51 +01:00
|
|
|
# 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
|
2022-12-16 11:50:40 +01:00
|
|
|
|
|
|
|
```sh
|
2022-11-20 18:49:51 +01:00
|
|
|
# podman run --name kaizoku-redis \
|
|
|
|
-v /mnt/kaizoku_redis:/data \
|
|
|
|
--pod pod_kaizoku \
|
|
|
|
-d docker.io/redis:7-alpine
|
|
|
|
```
|
|
|
|
|
|
|
|
### Application
|
2022-12-16 11:50:40 +01:00
|
|
|
|
|
|
|
```sh
|
2022-11-20 18:49:51 +01:00
|
|
|
# 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
|
|
|
|
```
|