This commit is contained in:
parent
b13b0b1eb6
commit
88509b1130
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
load("@this//chat:drone.star", "drone")
|
||||||
|
load("@this//chat:stack-name.star", "stackName")
|
||||||
|
load("@this//chat:stack-root.star", "stackRoot")
|
||||||
|
|
||||||
|
def main(ctx):
|
||||||
|
return drone(
|
||||||
|
ctx,
|
||||||
|
"home-deploy",
|
||||||
|
stackRoot,
|
||||||
|
stackName,
|
||||||
|
[]
|
||||||
|
)
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
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
|
||||||
|
image: rocketchat/rocket.chat:3.0.7
|
||||||
|
networks:
|
||||||
|
- appnet
|
||||||
|
- externalnet
|
||||||
|
environment:
|
||||||
|
- MONGO_OPLOG_URL=mongodb://chat-mongo:27017/local
|
||||||
|
- ROOT_URL=https://${GIT_DOMAIN}/chat
|
||||||
|
- 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
|
||||||
|
image: mongo:4.0
|
||||||
|
networks:
|
||||||
|
- appnet
|
||||||
|
environment:
|
||||||
|
- MONGO_DATA_DIR=/data/db
|
||||||
|
- MONGO_LOG_DIR=/dev/null
|
||||||
|
volumes:
|
||||||
|
- mongo-chat:/data/db
|
||||||
|
command: mongod --smallfiles --replSet rs0 --oplogSize 128
|
||||||
|
volumes:
|
||||||
|
mongo-chat:
|
||||||
|
chat-uploads:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
appnet:
|
||||||
|
driver: overlay
|
||||||
|
#external: true
|
||||||
|
externalnet:
|
||||||
|
driver: overlay
|
||||||
|
external: true
|
Loading…
Reference in New Issue