2020-05-10 21:31:48 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
chat:
|
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints: [node.labels.com.sigyl.git-stack == yes]
|
|
|
|
replicas: 0 # will scale after mongo initated
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
2020-08-28 20:45:23 +00:00
|
|
|
image: rocketchat/rocket.chat:3.5.4@sha256:f5978d325f9b63abe42adebecb9a3b891fa5ffaf9840ea252c134ed9ac6c09b8
|
2020-05-10 21:31:48 +00:00
|
|
|
networks:
|
|
|
|
- appnet
|
|
|
|
- externalnet
|
|
|
|
environment:
|
|
|
|
- MONGO_OPLOG_URL=mongodb://chat-mongo:27017/local
|
2020-08-28 20:45:23 +00:00
|
|
|
- ROOT_URL=https://${DOMAIN}/chat
|
2020-05-10 21:31:48 +00:00
|
|
|
- PORT=3000
|
|
|
|
- MONGO_URL=mongodb://chat-mongo:27017/rocketchat
|
|
|
|
- ADMIN_USERNAME=${CHAT_ADMIN_NAME}
|
|
|
|
- ADMIN_PASS=${CHAT_ADMIN_PASSWORD}
|
|
|
|
- ADMIN_EMAIL=${CHAT_ADMIN_EMAIL}
|
|
|
|
volumes:
|
|
|
|
- chat-uploads:/app/uploads
|
|
|
|
chat-mongo:
|
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints: [node.labels.com.sigyl.git-stack-data == yes]
|
|
|
|
replicas: 1
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
2020-08-28 20:45:23 +00:00
|
|
|
hostname: chat-mongo
|
2020-10-06 11:09:43 +00:00
|
|
|
image: mongo:4.2.10@sha256:2fc6a72a6e563f51f5fcc9e997eed996cec4db45aa0d415ff61928a9ecbbee95
|
2020-05-10 21:31:48 +00:00
|
|
|
networks:
|
|
|
|
- appnet
|
|
|
|
environment:
|
|
|
|
- MONGO_DATA_DIR=/data/db
|
|
|
|
- MONGO_LOG_DIR=/dev/null
|
|
|
|
volumes:
|
|
|
|
- mongo-chat:/data/db
|
2020-08-28 20:45:23 +00:00
|
|
|
command: mongod --replSet rs0 --oplogSize 128
|
2020-05-10 21:31:48 +00:00
|
|
|
volumes:
|
|
|
|
mongo-chat:
|
|
|
|
chat-uploads:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
appnet:
|
|
|
|
driver: overlay
|
|
|
|
externalnet:
|
|
|
|
driver: overlay
|
|
|
|
external: true
|