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:
+1
-1019
File diff suppressed because it is too large
Load Diff
@@ -2,6 +2,9 @@
|
||||
# Nextcloud
|
||||
#
|
||||
# Version 1
|
||||
#
|
||||
# useful commands:
|
||||
# php occ trashbin:cleanup --all-users
|
||||
################################################################################
|
||||
version: '3.3'
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -26,8 +26,8 @@ services:
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-file: "10"
|
||||
max-size: "2m"
|
||||
max-file: "100"
|
||||
max-size: "200m"
|
||||
environment:
|
||||
- STASH_STASH=/data/
|
||||
- STASH_GENERATED=/generated/
|
||||
@@ -37,17 +37,9 @@ services:
|
||||
- admin_web
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
## Adjust below paths (the left part) to your liking.
|
||||
## E.g. you can change ./config:/root/.stash to ./stash:/root/.stash
|
||||
## Keep configs here.
|
||||
#- ./config:/root/.stash
|
||||
## Point this at your collection.
|
||||
- stash:/data
|
||||
## This is where your stash's metadata lives
|
||||
- stash-metadata:/metadata
|
||||
## Any other cache content.
|
||||
- stash-cache:/cache
|
||||
## Where to store generated content (screenshots,previews,transcodes,sprites)
|
||||
- stash-generated:/generated
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
|
||||
Reference in New Issue
Block a user