Full Deployment

This guide demonstrates how to set up and run Binacle.Net with all features enabled, including Azurite as the database provider for the Service Module, OpenTelemetry for monitoring, and Aspire Dashboard for observability.

πŸ› οΈ Prerequisites

Before you start, make sure you have the following installed on your machine.

Download the following files

Place these files in a directory of your choice. This directory will be your project root.

Customize (Optional)

Edit the Presets.json file to adjust the bin configurations as per your needs.

Create a .env file in the same directory with the content:

 COMPOSE_PROJECT_NAME=binacle-net-full-deployment

This will set the project name for Docker Compose, allowing you to run multiple instances without conflicts.

πŸš€ Running the Application

In the project directory, start the application by running:

docker compose up

This will launch Binacle.Net with the following features:

πŸ” Accessing the API, UI and Aspire Dashboard

βš™οΈCustomizing the Configuration

πŸ“‚ Logs Folder

When running the application, a ./data folder will be created to store application data, including logs for monitoring and debugging. It’s important to ensure that the ./data and ./data/logs directories have write permissions for proper functionality.

Setting Permissions

Run the following commands to create the directory and set the required permissions:

mkdir -p ./data/logs
sudo chmod -R 777 ./data

This will grant full access to ./data and its subdirectories.

777 gives full access to all users. Adjust permissions as needed for security.

πŸ› οΈ Getting the Aspire Dashboard Login Token

The Aspire Dashboard generates a login URL with a token for access.

View the Logs: After starting the deployment, run the following command:

docker-compose logs -f aspire-dashboard

Locate the Login URL: In the logs, find a line like:

Login to the dashboard at http://localhost:18888/login?t=your_token_here.

Access the Dashboard: Copy the URL and open it in your browser. You’ll be logged in automatically

πŸ“„ Additional Resources

Happy packing! πŸ“¦βœ¨