To reverse-proxy hawkbit by nginx, the given docker-compose.yml can be used (adapted from the official hawkbit docker-compose file)
server.key and server.crt can be created with openssl e.g. like this:
$ openssl req -x509 -newkey rsa:4096 -nodes -keyout server.pem -out server.crt -subj "/CN=localhost"
To start the hawkbit server run below command
$ docker-compose up --build
You can add -d to the command to run the containers in background
$ docker-compose up --build -d
It will start 4 containers:
- RabbitMQ, listening on ports 5672 and 15672
- MySQL, only available to hawkbit
- hawkbit, only reachable to nginx
- nginx, listening on port 443 and forwarding requests to hawkbit
You can connect by pointing your browser to https://localhost and login by admin/admin (after accepting the security exception).