From 9b8ab40c55abdcbadcdd770352028d792f8d6325 Mon Sep 17 00:00:00 2001 From: esunea <32863598+esunea@users.noreply.github.com> Date: Mon, 28 Oct 2019 15:46:56 +0100 Subject: [PATCH] Adding docker-compose doc (#904) Signed-off-by: MOULARD Paul --- hawkbit-runtime/docker/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/hawkbit-runtime/docker/README.md b/hawkbit-runtime/docker/README.md index 54dcd726e..62cd3f328 100644 --- a/hawkbit-runtime/docker/README.md +++ b/hawkbit-runtime/docker/README.md @@ -38,3 +38,24 @@ $ docker stack deploy -c docker-compose-stack.yml hawkbit | hawkBit Device Simulator | [http://localhost:8083/](http://localhost:8083/) | - | | | ✓ | | MySQL | localhost:3306/hawkbit | root | | ✓ | ✓ | | RabbitMQ | [http://localhost:15672](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-mysql" + environment: + SPRING_APPLICATION_JSON: '{ + "spring.datasource.url": "jdbc:mysql://mysql:3306/hawkbit", + "spring.rabbitmq.host": "rabbitmq", + "spring.rabbitmq.username": "guest", + "spring.rabbitmq.password": "guest", + "spring.datasource.username": "root", + "hawkbit.server.im.users[0].username": "hawkbit", + "hawkbit.server.im.users[0].password": "{noop}isAwesome!", + "hawkbit.server.im.users[0].firstname": "Eclipse", + "hawkbit.server.im.users[0].lastname": "HawkBit", + "hawkbit.server.im.users[0].permissions": "ALL" + }' +``` \ No newline at end of file