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:43]
nightfly
docker [2025/07/01 00:03] (current)
nightfly [Building without compose]
Line 1: Line 1:
-====== WolfRecorder Docker Setup ======+====== Building own Docker image ======
  
 **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 29: Line 29:
 ===== Managing the Container ===== ===== Managing the Container =====
  
-To stop the container:+To stop the container:
 <code> <code>
 docker compose down docker compose down
 </code> </code>
  
-To restart the running container:+To restart the running container:
 <code> <code>
 docker compose restart docker compose restart
 </code> </code>
 +
 +To access container shell:
 +<code>
 +docker exec -it wolfrec bash
 +</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>
 +
  
 ===== Verification ===== ===== Verification =====
  
-Check the container logs:+Check the container logs:
 <code> <code>
 docker logs -f wolfrec docker logs -f wolfrec
 </code> </code>
  
-The web interface will be available on port **9090**+The web interface will be available on port **9090**
  
 ===== Notes ===== ===== Notes =====
- +  * Web interface: http://localhost:9090 or http://host_ip:9090 
-  * Persistent data is stored in Docker volumes as defined in <code>docker-compose.yml</code>.+  * 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 <code>supervisord</code> inside the container.+  * Cron jobs and services are managed via supervisord inside the container.
  
docker.1751128988.txt.gz · Last modified: 2025/06/28 19:43 by nightfly