User Tools

Site Tools


docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docker [2025/06/28 19:50]
nightfly
docker [2025/07/04 13:07] (current)
nightfly
Line 1: Line 1:
-====== WolfRecorder Docker Setup ======+====== Running WolfRecorder in Docker ======
  
 **Important:** Running WolfRecorder inside a Docker container is **not recommended for production use**.   **Important:** Running WolfRecorder inside a Docker container is **not recommended for production use**.  
-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/wolfrecorder:latest 
 +    container_name: wolfrec 
 +    ports: 
 +      - "9090:80" 
 +    volumes: 
 +      - wr_storage:/wrstorage 
 +      - wr_web:/var/www/html/wr 
 +      - wr_db:/var/lib/mysql 
 +      - wr_bin:/data/bin 
 +    restart: unless-stopped 
 + 
 +volumes: 
 +  wr_storage: 
 +  wr_web: 
 +  wr_db: 
 +  wr_bin: 
 +</file> 
 + 
 +2. Just pull and run container with single command  
 +<code> 
 +docker compose up -d 
 +</code> 
 + 
 + 
 +===== Building your own image using composer =====
  
 1. Clone the repository: 1. Clone the repository:
Line 25: Line 55:
 <code> <code>
 docker compose up -d docker compose up -d
 +</code>
 +
 +
 +===== Building without compose =====
 +
 +In case if you dont want use compose in some reasons(?) you can build all manually
 +
 +<code>
 +docker build -t wolfrecorder:latest .
 +
 +docker volume create wr_storage
 +docker volume create wr_web
 +docker volume create wr_db
 +docker volume create wr_bin
 +</code>
 +
 +and run first time with
 +<code>
 +docker run -d \
 +  --name wolfrec \
 +  -p 9090:80 \
 +  -v wr_storage:/wrstorage \
 +  -v wr_web:/var/www/html/wr \
 +  -v wr_db:/var/lib/mysql \
 +  -v wr_bin:/data/bin \
 +  --restart unless-stopped \
 +  wolfrecorder:latest
 +</code>
 +
 +starting container
 +<code>
 +docker start wolfrec
 +</code>
 +
 +stopping container
 +<code>
 +docker stop wolfrec
 </code> </code>
  
Line 39: Line 106:
 </code> </code>
  
-To go container shell:+To access container shell:
 <code> <code>
 docker exec -it wolfrec bash docker exec -it wolfrec bash
 </code> </code>
- 
-===== Verification ===== 
  
 Check the container logs: Check the container logs:
Line 54: Line 119:
  
 ===== Notes ===== ===== Notes =====
 +  * Web interface: http://localhost:9090 or http://host_ip:9090
   * 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.
  
docker.1751129409.txt.gz · Last modified: 2025/06/28 19:50 by nightfly