Docker

Logbee can run as a Docker application, thanks to the valuable contribution of Marcio.

The official Logbee Docker images are:

Running Logbee in Docker will automatically install all the necessary prerequisites.

Docker files

To run Logbee as a Docker container, create the following files in the specified directory structure:

/logbee-app/Docker
├── docker-compose.yml
├── backend.logbee.json
└── frontend.logbee.json

A full working example of the Logbee Docker configuration files can be found at https://github.com/catalingavan/logbee-app/tree/main/Docker.

The latest versions of the Docker container images can be found at https://github.com/catalingavan/logbee-app?tab=readme-ov-file#latest-versions.

docker-compose.yml
networks:
  default:
    name: logbee-net
    driver: bridge
    driver_opts:
      com.docker.network.driver.mtu: 1380

services:
  backend:
    image: catalingavan/logbee.backend:2.0.0
    container_name: logbee.backend
    restart: unless-stopped
    environment:
      - ASPNETCORE_URLS=http://0.0.0.0:80
      - LOGBEE_BACKEND_CONFIGURATION_FILE_PATH=Configuration/backend.logbee.json
    volumes:
      - ./backend.logbee.json:/app/Configuration/backend.logbee.json
      - ./frontend.logbee.json:/app/Configuration/frontend.logbee.json
    ports:
      - "44088:80"
    depends_on:
      - mongodb
    networks:
      - default

  frontend:
    image: catalingavan/logbee.frontend:2.0.0
    container_name: logbee.frontend
    restart: unless-stopped
    environment:
      - ASPNETCORE_URLS=http://0.0.0.0:80
      - LOGBEE_FRONTEND_CONFIGURATION_FILE_PATH=Configuration/frontend.logbee.json
    volumes:
      - ./frontend.logbee.json:/app/Configuration/frontend.logbee.json
      - ./backend.logbee.json:/app/Configuration/backend.logbee.json
    ports:
      - "44080:80"
    depends_on:
      - backend
    networks:
      - default

  mongodb:
    image: mongo:8.0.4
    container_name: logbee.mongodb
    restart: unless-stopped
    volumes:
      - mongo-data:/data/db
      - mongo-config:/data/configdb
    networks:
      - default

volumes:
  mongo-data:
  mongo-config:

Build

To start the Logbee containers along with all necessary prerequisites, run the following command:

C:\logbee-app\Docker> docker compose up -d

This command will create and start the containers for Logbee.Backend, Logbee.Frontend and MongoDB.

docker compose up

After all the services have been created, you can access the applications using the following URLs:

Logbee.Frontend running as Docker container
Logbee.Backend running as Docker container

You can follow the Authentication instructions for generating an authentication token.

If the default HS256Secret value is being used, the following authentication token can be used for testing purposes:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.HP79qro7bvfH7BneUy5jB9Owc_5D2UavFDulRETAl9E

Note

The above token is for demonstration purposes only. Replace it with a valid token generated using your own secret key for production environments.


For technical support, questions or any feedback, please feel free to send us a message and we will get back to you.