Docker Minimal
The smallest setup that answers: the API, your presets, and somewhere to write logs. Nothing else is switched on.
π οΈ Prerequisites
- Docker
- Docker Compose (included with Docker Desktop)
π₯ Download the following files
Place both in a directory of your choice. That directory is your project root.
βοΈ Change this first
Edit Presets.json and replace the example bins with your own. Until you do, the answers describe someone
elseβs packaging.
π Running the Application
In the project root, start the application:
docker compose up
This launches the Binacle.Net API with:
- π Custom Presets: loaded from your
Presets.json. - π Logs Folder: a
./data/logsfolder is created for application logs.
π Accessing the API
Once the container is running, the API answers on:
http://localhost:8080/
There is no browsable documentation in this setup. Use the API pages, or the Quickstart sample if you want Swagger UI.
βοΈ Customizing Presets
To change bin configurations:
- Open
Presets.jsonin your editor. - Edit the bin definitions.
- Restart to apply:
docker compose down docker compose up
π Logs Folder
A ./data folder is created for application data, including logs. The ./data and ./data/logs directories
need write permissions.
Setting Permissions
mkdir -p ./data/logs
sudo chmod -R 777 ./data
777 gives full access to all users. Adjust permissions as needed for security.
π Additional Resources
Happy packing! π¦β¨