This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
docker [2025/06/28 19:44] nightfly |
docker [2025/07/04 13:07] (current) nightfly |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== WolfRecorder Docker | + | ====== |
| **Important: | **Important: | ||
| - | This setup is provided as a **proof of concept** and has not been tested for stability or security. | + | This setup is provided as a proof of concept and has not been tested for stability or security. |
| ===== Requirements ===== | ===== Requirements ===== | ||
| Line 9: | Line 9: | ||
| * Git | * Git | ||
| - | ===== Steps ===== | + | ===== Running from Docker Hub ===== |
| + | |||
| + | 1. Create **docker-compose.yml** file with following content | ||
| + | <file yml docker-compose.yml> | ||
| + | services: | ||
| + | wolfrecorder: | ||
| + | image: nightflyza/ | ||
| + | container_name: | ||
| + | ports: | ||
| + | - " | ||
| + | volumes: | ||
| + | - wr_storage:/ | ||
| + | - wr_web:/ | ||
| + | - wr_db:/ | ||
| + | - wr_bin:/ | ||
| + | restart: unless-stopped | ||
| + | |||
| + | volumes: | ||
| + | wr_storage: | ||
| + | wr_web: | ||
| + | wr_db: | ||
| + | wr_bin: | ||
| + | </ | ||
| + | |||
| + | 2. Just pull and run container with single command | ||
| + | < | ||
| + | docker compose up -d | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Building your own image using composer | ||
| 1. Clone the repository: | 1. Clone the repository: | ||
| Line 25: | Line 55: | ||
| < | < | ||
| docker compose up -d | docker compose up -d | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Building without compose ===== | ||
| + | |||
| + | In case if you dont want use compose in some reasons(?) you can build all manually | ||
| + | |||
| + | < | ||
| + | docker build -t wolfrecorder: | ||
| + | |||
| + | docker volume create wr_storage | ||
| + | docker volume create wr_web | ||
| + | docker volume create wr_db | ||
| + | docker volume create wr_bin | ||
| + | </ | ||
| + | |||
| + | and run first time with | ||
| + | < | ||
| + | docker run -d \ | ||
| + | --name wolfrec \ | ||
| + | -p 9090:80 \ | ||
| + | -v wr_storage:/ | ||
| + | -v wr_web:/ | ||
| + | -v wr_db:/ | ||
| + | -v wr_bin:/ | ||
| + | --restart unless-stopped \ | ||
| + | wolfrecorder: | ||
| + | </ | ||
| + | |||
| + | starting container | ||
| + | < | ||
| + | docker start wolfrec | ||
| + | </ | ||
| + | |||
| + | stopping container | ||
| + | < | ||
| + | docker stop wolfrec | ||
| </ | </ | ||
| Line 39: | Line 106: | ||
| </ | </ | ||
| - | ===== Verification ===== | + | To access container shell: |
| + | < | ||
| + | docker exec -it wolfrec bash | ||
| + | </ | ||
| Check the container logs: | Check the container logs: | ||
| Line 49: | Line 119: | ||
| ===== Notes ===== | ===== Notes ===== | ||
| + | * Web interface: http:// | ||
| * Persistent data is stored in Docker volumes as defined in docker-compose.yml. | * Persistent data is stored in Docker volumes as defined in docker-compose.yml. | ||
| * The entrypoint script initializes the database and configuration files automatically. | * The entrypoint script initializes the database and configuration files automatically. | ||
| * Cron jobs and services are managed via supervisord inside the container. | * Cron jobs and services are managed via supervisord inside the container. | ||