mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +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
|
# Nextcloud
|
||||||
#
|
#
|
||||||
# Version 1
|
# Version 1
|
||||||
|
#
|
||||||
|
# useful commands:
|
||||||
|
# php occ trashbin:cleanup --all-users
|
||||||
################################################################################
|
################################################################################
|
||||||
version: '3.3'
|
version: '3.3'
|
||||||
|
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ volumes:
|
|||||||
rocketchat-dump:
|
rocketchat-dump:
|
||||||
rocketchat-scripts:
|
rocketchat-scripts:
|
||||||
|
|
||||||
services:
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
rocketchat:
|
rocketchat:
|
||||||
# https://hub.docker.com/r/rocketchat/rocket.chat
|
image: rocketchat/rocket.chat:latest
|
||||||
image: rocketchat/rocket.chat:${ROCKETCHAT_V}
|
|
||||||
command: >
|
command: >
|
||||||
bash -c
|
bash -c
|
||||||
"for i in `seq 1 30`; do
|
"for i in `seq 1 30`; do
|
||||||
@@ -34,39 +34,31 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- rocketchat:/app/uploads
|
- rocketchat:/app/uploads
|
||||||
networks:
|
|
||||||
- admin_web
|
|
||||||
environment:
|
environment:
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
- ROOT_URL=https://${ROCKET_DOMAIN_NAME}
|
- ROOT_URL=http://${ROCKET_DOMAIN_NAME}:3000
|
||||||
- MONGO_URL=mongodb://${PREFIX}_rc-db_1:27017/rocketchat
|
- MONGO_URL=mongodb://${PREFIX}_mongo_1:27017/rocketchat
|
||||||
- MONGO_OPLOG_URL=mongodb://${PREFIX}_rc-db_1:27017/local
|
- MONGO_OPLOG_URL=mongodb://${PREFIX}_mongo_1:27017/local
|
||||||
- MAIL_URL=smtp://smtp.email
|
- MAIL_URL=smtp://smtp.email
|
||||||
# - HTTP_PROXY=http://proxy.domain.com
|
# - HTTP_PROXY=http://proxy.domain.com
|
||||||
# - HTTPS_PROXY=http://proxy.domain.com
|
# - HTTPS_PROXY=http://proxy.domain.com
|
||||||
depends_on:
|
depends_on:
|
||||||
- rc-db
|
- mongo
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "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.entrypoints=websecure"
|
||||||
- "traefik.http.routers.${PREFIX}_chat.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.${PREFIX}_chat.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.services.${PREFIX}_chat.loadbalancer.server.port=3000"
|
- "traefik.http.services.${PREFIX}_chat.loadbalancer.server.port=3000"
|
||||||
|
|
||||||
rc-db:
|
mongo:
|
||||||
image: mongo:4.0
|
image: mongo:4.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- rocketchat-db:/data/db
|
- rocketchat-db:/data/db
|
||||||
#- ./data/dump:/dump
|
- rocketchat-dump:/dump
|
||||||
networks:
|
|
||||||
- admin_web
|
|
||||||
command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1
|
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:
|
mongo-init-replica:
|
||||||
image: mongo:4.0
|
image: mongo:4.0
|
||||||
command: >
|
command: >
|
||||||
@@ -81,16 +73,14 @@ services:
|
|||||||
sleep 5;
|
sleep 5;
|
||||||
done; (exit $$s)"
|
done; (exit $$s)"
|
||||||
depends_on:
|
depends_on:
|
||||||
- rc-db
|
- mongo
|
||||||
networks:
|
|
||||||
- admin_web
|
|
||||||
|
|
||||||
# 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=${PREFIX}_rocketchat_1:3000
|
- ROCKETCHAT_URL=rocketchat:3000
|
||||||
- ROCKETCHAT_ROOM=GENERAL
|
- ROCKETCHAT_ROOM=GENERAL
|
||||||
- ROCKETCHAT_USER=bot
|
- ROCKETCHAT_USER=bot
|
||||||
- ROCKETCHAT_PASSWORD=botpassword
|
- ROCKETCHAT_PASSWORD=botpassword
|
||||||
@@ -99,9 +89,5 @@ services:
|
|||||||
- 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:
|
|
||||||
- "traefik.enable=false"
|
|
||||||
volumes:
|
volumes:
|
||||||
- rocketchat-scripts:/home/hubot/scripts
|
- rocketchat-scripts:/home/hubot/scripts
|
||||||
networks:
|
|
||||||
- admin_web
|
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ services:
|
|||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
max-file: "10"
|
max-file: "100"
|
||||||
max-size: "2m"
|
max-size: "200m"
|
||||||
environment:
|
environment:
|
||||||
- STASH_STASH=/data/
|
- STASH_STASH=/data/
|
||||||
- STASH_GENERATED=/generated/
|
- STASH_GENERATED=/generated/
|
||||||
@@ -37,17 +37,9 @@ services:
|
|||||||
- admin_web
|
- admin_web
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /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
|
- stash:/data
|
||||||
## This is where your stash's metadata lives
|
|
||||||
- stash-metadata:/metadata
|
- stash-metadata:/metadata
|
||||||
## Any other cache content.
|
|
||||||
- stash-cache:/cache
|
- stash-cache:/cache
|
||||||
## Where to store generated content (screenshots,previews,transcodes,sprites)
|
|
||||||
- stash-generated:/generated
|
- stash-generated:/generated
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
|
|||||||
Reference in New Issue
Block a user