From e44ab46af24c592fc5ba5baad5d429ab01f5add9 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Thu, 27 Aug 2020 18:45:55 +0100 Subject: [PATCH] fix: image digests --- README.md | 15 +++++++++++++++ docker-compose.yml | 5 ++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 46fa0a4..c033cc0 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,24 @@ # chat ## secrets + * chat-admin-name * chat-admin-password * git-domain * local-docker-registry * registry-password +## initialise mongo + +https://docs.rocket.chat/installation/manual-installation/mongo-replicas + +```shell +docker exec -it [mongo container id] mongo +rs.initiate() +``` + +## scale chat + +```shell +docker service scale chat_chat=1 +``` diff --git a/docker-compose.yml b/docker-compose.yml index 69cb9c1..7bda512 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: replicas: 0 # will scale after mongo initated restart_policy: condition: any - image: rocketchat/rocket.chat:3.5.4 + image: rocketchat/rocket.chat:3.5.4@sha256:f5978d325f9b63abe42adebecb9a3b891fa5ffaf9840ea252c134ed9ac6c09b8 networks: - appnet - externalnet @@ -28,7 +28,7 @@ services: replicas: 1 restart_policy: condition: any - image: mongo:4.4 + image: mongo:4.4.0@sha256:ebd31eaac273a9544a33387aa859b0a8676565340a40fc824fa7bda686f462f1 networks: - appnet environment: @@ -44,7 +44,6 @@ volumes: networks: appnet: driver: overlay - #external: true externalnet: driver: overlay external: true