Files
hawkbit/docker/README.md
2024-11-21 09:38:14 +02:00

2.1 KiB

hawkBit Docker

Setup

A: Docker Container

Start the hawkBit Update Server as a single container (requires Docker to be installed and all dependencies to be available)

$ docker run -d -p 8080:8080 hawkbit/hawkbit-update-server:latest

B: Docker Compose

Start the hawkBit Update Server together with an MySQL and RabbitMQ instance as containers (Requires Docker Compose to be installed)

$ docker compose -f docker-compose-monolith-mysql.yml up

You could, also start it in different flavours, with UI or in microservices mode.

Note: Whit the upper command CTRL+C shuts down all services. Add '-d' at the end to start all into detached mode:

$ docker compose -f docker-compose-monolith-mysql.yml up -d

Then stop all services with:

$ docker compose -f docker-compose-monolith-mysql.yml down

Access

Service / Container URL Login A B C
hawkBit Update Server http://localhost:8080/ admin:admin
MySQL localhost:3306/hawkbit root
RabbitMQ http://localhost:15672 guest:guest

Configuration

You can override application.properties by setting an environment variable SPRING_APPLICATION_JSON for hawkbit container.

hawkbit:
    image: "hawkbit/hawkbit-update-server:latest"
    environment:
      SPRING_APPLICATION_JSON: '{
        "spring.datasource.url": "jdbc:mariadb://mysql:3306/hawkbit",
        "spring.rabbitmq.host": "rabbitmq",
        "spring.rabbitmq.username": "guest",
        "spring.rabbitmq.password": "guest",
        "hawkbit.security.user.hawkbit.tenant": "DEFAULT",
        "hawkbit.security.user.hawkbit.password": "{noop}isAwesome!",
        "hawkbit.security.user.hawkbit.roles": "TENANT_ADMIN" 
      }'