Sync label for new Mongo version
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
ac6b236c7b
commit
d5e09cf1c6
66
compose.yml
66
compose.yml
|
@ -1,6 +1,4 @@
|
||||||
---
|
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: rocketchat/rocket.chat:3.12.3
|
image: rocketchat/rocket.chat:3.12.3
|
||||||
|
@ -30,6 +28,8 @@ services:
|
||||||
entrypoint: /docker-entrypoint.sh
|
entrypoint: /docker-entrypoint.sh
|
||||||
command: >
|
command: >
|
||||||
bash -c
|
bash -c
|
||||||
|
|
||||||
|
|
||||||
"for i in `seq 1 30`; do
|
"for i in `seq 1 30`; do
|
||||||
node main.js &&
|
node main.js &&
|
||||||
s=$$? && break || s=$$?;
|
s=$$? && break || s=$$?;
|
||||||
|
@ -56,24 +56,27 @@ services:
|
||||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
- "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.SSLForceHost=true"
|
||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mongo:3.7
|
image: mongo:3.7
|
||||||
volumes:
|
volumes:
|
||||||
- mongo:/data/db
|
- mongo:/data/db
|
||||||
#- ./data/dump:/dump
|
#- ./data/dump:/dump
|
||||||
command: mongod --smallfiles --oplogSize 128 --replSet rs0
|
command: mongod --smallfiles --oplogSize 128 --replSet rs0
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=false"
|
- "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.
|
# 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)
|
# it will run the command and remove himself (it will not stay running)
|
||||||
mongo-init-replica:
|
mongo-init-replica:
|
||||||
image: mongo:4.0
|
image: mongo:4.0
|
||||||
command: >
|
command: >
|
||||||
bash -c
|
bash -c
|
||||||
|
|
||||||
|
|
||||||
"for i in `seq 1 30`; do
|
"for i in `seq 1 30`; do
|
||||||
mongo db/rocketchat --eval \"
|
mongo db/rocketchat --eval \"
|
||||||
rs.initiate({
|
rs.initiate({
|
||||||
|
@ -87,43 +90,38 @@ services:
|
||||||
- db
|
- db
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
# hubot, the popular chatbot (add the bot user first and change the password before starting this image)
|
||||||
# hubot, the popular chatbot (add the bot user first and change the password before starting this image)
|
#hubot:
|
||||||
#hubot:
|
# image: rocketchat/hubot-rocketchat:latest
|
||||||
# image: rocketchat/hubot-rocketchat:latest
|
# restart: unless-stopped
|
||||||
# restart: unless-stopped
|
# environment:
|
||||||
# environment:
|
# - ROCKETCHAT_URL=rocketchat:3000
|
||||||
# - ROCKETCHAT_URL=rocketchat:3000
|
# - ROCKETCHAT_ROOM=GENERAL
|
||||||
# - ROCKETCHAT_ROOM=GENERAL
|
# - ROCKETCHAT_USER=bot
|
||||||
# - ROCKETCHAT_USER=bot
|
# - ROCKETCHAT_PASSWORD=botpassword
|
||||||
# - ROCKETCHAT_PASSWORD=botpassword
|
# - BOT_NAME=bot
|
||||||
# - BOT_NAME=bot
|
# # you can add more scripts as you'd like here, they need to be installable by npm
|
||||||
# # you can add more scripts as you'd like here, they need to be installable by npm
|
# - EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-diagnostics
|
||||||
# - EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-diagnostics
|
# depends_on:
|
||||||
# depends_on:
|
# - rocketchat
|
||||||
# - rocketchat
|
# labels:
|
||||||
# labels:
|
# - "traefik.enable=false"
|
||||||
# - "traefik.enable=false"
|
# volumes:
|
||||||
# volumes:
|
# - hubot_scripts:/home/hubot/scripts
|
||||||
# - hubot_scripts:/home/hubot/scripts
|
# # this is used to expose the hubot port for notifications on the host on port 3001, e.g. for hubot-jenkins-notifier
|
||||||
# # this is used to expose the hubot port for notifications on the host on port 3001, e.g. for hubot-jenkins-notifier
|
# #ports:
|
||||||
# #ports:
|
# # - 3001:8080
|
||||||
# # - 3001:8080
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
internal:
|
internal:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
rocketchat_uploads:
|
rocketchat_uploads:
|
||||||
mongo:
|
mongo:
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
admin_password:
|
admin_password:
|
||||||
external: true
|
external: true
|
||||||
name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION}
|
name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION}
|
||||||
|
|
||||||
configs:
|
configs:
|
||||||
entrypoint_conf:
|
entrypoint_conf:
|
||||||
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}
|
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}
|
||||||
|
|
Loading…
Reference in New Issue