diff --git a/Dockerfile b/Dockerfile index dea7cf7..7bbeac2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,8 @@ RUN chmod +x /run.sh RUN mkdir /config +RUN adduser --disabled-password --no-create-home cronicle + #RUN ln -sf /dev/stdout /opt/cronicle/logs/Cronicle.log EXPOSE 3012 diff --git a/README.md b/README.md index e329b82..c31579d 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,12 @@ Can function in both the **manager** and **worker** role. If you want to configure Cronicle before first run, download `config_sample.json` and adjust accordingly before placing in `/config/config.json`. -NOTE: You need to define the hostname of the container if using `docker run`. Cronicle expects the hostname to remain the same, so the randomly-generated container hostname can cause problems if it changes. Docker Compose containers inherit their hostname from the `container_name` parameter, but it can also be defined using `hostname: xyz`. +NOTE: You must define the hostname of the container. Cronicle expects the hostname to remain the same, so the randomly-generated container hostname can cause problems if it changes. ### Docker CLI ``` docker run -d --name cronicle \ - --hostname cronicle-docker \ + --hostname cronicle-manager \ -p 3012:3012 \ -e MODE=manager \ -v {path on host}:/config @@ -34,6 +34,7 @@ services: container_name: cronicle image: git.mrmeeb.stream/mrmeeb/cronicle:latest restart: unless-stopped + hostname: cronicle-manager ports: - 3012:3012 volumes: