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:41] nightfly |
docker [2025/07/01 00:03] (current) nightfly [Building without compose] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
**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. |
- | ===== Prerequisites | + | ===== Requirements |
* Docker | * Docker | ||
* Docker Compose | * Docker Compose | ||
Line 29: | Line 29: | ||
===== Managing the Container ===== | ===== Managing the Container ===== | ||
- | * To stop the container: | + | To stop the container: |
< | < | ||
docker compose down | docker compose down | ||
</ | </ | ||
- | * To restart the running container: | + | To restart the running container: |
< | < | ||
docker compose restart | docker compose restart | ||
</ | </ | ||
+ | |||
+ | To access container shell: | ||
+ | < | ||
+ | docker exec -it wolfrec bash | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== 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 | ||
+ | </ | ||
+ | |||
===== Verification ===== | ===== Verification ===== | ||
- | * Check the container logs: | + | Check the container logs: |
< | < | ||
docker logs -f wolfrec | docker logs -f wolfrec | ||
</ | </ | ||
- | * The web interface will be available on port **9090** | + | The web interface will be available on port **9090** |
===== Notes ===== | ===== Notes ===== | ||
- | + | * Web interface: http:// | |
- | * Persistent data is stored in Docker volumes as defined in < | + | * 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 < | + | * Cron jobs and services are managed via supervisord inside the container. |