From b2e94fdb1dbc9dadf3424a3727b032d705efce80 Mon Sep 17 00:00:00 2001 From: wilmardo Date: Sat, 6 Feb 2021 18:23:16 +0100 Subject: [PATCH] feat: adds default configuration Signed-off-by: wilmardo --- Dockerfile | 2 +- README.md | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 44b9ce0..e9ad394 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,7 +78,7 @@ COPY --from=builder /etc_passwd /etc/passwd COPY --from=builder /mosquitto/src/mosquitto /mosquitto # Add default configuration -COPY --from=builder /mosquitto/mosquitto.conf /config/mosquitto.conf +COPY mosquitto.conf /config/mosquitto.conf USER mosquitto ENTRYPOINT ["/mosquitto"] diff --git a/README.md b/README.md index d612f13..5eed8c4 100644 --- a/README.md +++ b/README.md @@ -14,21 +14,15 @@ Also this container is way smaller! ## Running the container -The default credentials are (set in the mosquitto.conf): -```yaml -username: mosquitto -password: mosquitto -``` - -### Local Docker +The default configuration allows passwordless connections. Just do and you should be able to connect to localhost:1883: ``` -docker run -d lansible/mosquitto +docker run -it -p 1883:1883 lansible/mosquitto:latest ``` ### Docker-compose/Swarm The repository contains a basic Docker Compose file which works with Swarm. -Use this or use it as a good start! +Use this or use it as a good start and example how to use a password file. ```yaml cd examples/docker-compose