mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
trying to fix rocketchat
This commit is contained in:
@@ -18,11 +18,11 @@ volumes:
|
||||
rocketchat-dump:
|
||||
rocketchat-scripts:
|
||||
|
||||
services:
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
rocketchat:
|
||||
# https://hub.docker.com/r/rocketchat/rocket.chat
|
||||
image: rocketchat/rocket.chat:${ROCKETCHAT_V}
|
||||
image: rocketchat/rocket.chat:latest
|
||||
command: >
|
||||
bash -c
|
||||
"for i in `seq 1 30`; do
|
||||
@@ -34,39 +34,31 @@ services:
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- rocketchat:/app/uploads
|
||||
networks:
|
||||
- admin_web
|
||||
environment:
|
||||
- PORT=3000
|
||||
- ROOT_URL=https://${ROCKET_DOMAIN_NAME}
|
||||
- MONGO_URL=mongodb://${PREFIX}_rc-db_1:27017/rocketchat
|
||||
- MONGO_OPLOG_URL=mongodb://${PREFIX}_rc-db_1:27017/local
|
||||
- ROOT_URL=http://${ROCKET_DOMAIN_NAME}:3000
|
||||
- MONGO_URL=mongodb://${PREFIX}_mongo_1:27017/rocketchat
|
||||
- MONGO_OPLOG_URL=mongodb://${PREFIX}_mongo_1:27017/local
|
||||
- MAIL_URL=smtp://smtp.email
|
||||
# - HTTP_PROXY=http://proxy.domain.com
|
||||
# - HTTPS_PROXY=http://proxy.domain.com
|
||||
depends_on:
|
||||
- rc-db
|
||||
- mongo
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.${PREFIX}_chat.rule=Host(`${ROCKET_DOMAIN_NAME}`)"
|
||||
- "traefik.http.routers.${PREFIX}_chat.rule=Host(`${STASH_DOMAIN_NAME}`)"
|
||||
- "traefik.http.routers.${PREFIX}_chat.entrypoints=websecure"
|
||||
- "traefik.http.routers.${PREFIX}_chat.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.${PREFIX}_chat.loadbalancer.server.port=3000"
|
||||
|
||||
rc-db:
|
||||
mongo:
|
||||
image: mongo:4.0
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- rocketchat-db:/data/db
|
||||
#- ./data/dump:/dump
|
||||
networks:
|
||||
- admin_web
|
||||
- rocketchat-dump:/dump
|
||||
command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
|
||||
# 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: >
|
||||
@@ -81,16 +73,14 @@ services:
|
||||
sleep 5;
|
||||
done; (exit $$s)"
|
||||
depends_on:
|
||||
- rc-db
|
||||
networks:
|
||||
- admin_web
|
||||
- mongo
|
||||
|
||||
# hubot, the popular chatbot (add the bot user first and change the password before starting this image)
|
||||
hubot:
|
||||
image: rocketchat/hubot-rocketchat:latest
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- ROCKETCHAT_URL=${PREFIX}_rocketchat_1:3000
|
||||
- ROCKETCHAT_URL=rocketchat:3000
|
||||
- ROCKETCHAT_ROOM=GENERAL
|
||||
- ROCKETCHAT_USER=bot
|
||||
- ROCKETCHAT_PASSWORD=botpassword
|
||||
@@ -99,9 +89,5 @@ services:
|
||||
- EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-diagnostics
|
||||
depends_on:
|
||||
- rocketchat
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
volumes:
|
||||
- rocketchat-scripts:/home/hubot/scripts
|
||||
networks:
|
||||
- admin_web
|
||||
|
||||
Reference in New Issue
Block a user