Sync label for new Mongo version
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2021-04-04 21:56:52 +02:00
parent ac6b236c7b
commit d5e09cf1c6
1 changed files with 32 additions and 34 deletions

View File

@ -1,6 +1,4 @@
---
version: '3.8'
services:
app:
image: rocketchat/rocket.chat:3.12.3
@ -30,6 +28,8 @@ services:
entrypoint: /docker-entrypoint.sh
command: >
bash -c
"for i in `seq 1 30`; do
node main.js &&
s=$$? && break || s=$$?;
@ -56,7 +56,6 @@ services:
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
db:
image: mongo:3.7
volumes:
@ -67,13 +66,17 @@ services:
- internal
labels:
- "traefik.enable=false"
deploy:
labels:
- coop-cloud.${STACK_NAME}.db.version=3.7-736eec20
# this container's job is just run the command to initialize the replica set.
# it will run the command and remove himself (it will not stay running)
mongo-init-replica:
image: mongo:4.0
command: >
bash -c
"for i in `seq 1 30`; do
mongo db/rocketchat --eval \"
rs.initiate({
@ -87,7 +90,6 @@ services:
- db
networks:
- internal
# hubot, the popular chatbot (add the bot user first and change the password before starting this image)
#hubot:
# image: rocketchat/hubot-rocketchat:latest
@ -109,21 +111,17 @@ services:
# # this is used to expose the hubot port for notifications on the host on port 3001, e.g. for hubot-jenkins-notifier
# #ports:
# # - 3001:8080
networks:
proxy:
external: true
internal:
volumes:
rocketchat_uploads:
mongo:
secrets:
admin_password:
external: true
name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION}
configs:
entrypoint_conf:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}