Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
60153318
Commit
60153318
authored
8 years ago
by
Diego Sampaio
Browse files
Options
Downloads
Patches
Plain Diff
Add replica set and automatic SSL to docker-compose
parent
1041feee
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker-compose.yml
+34
-9
34 additions, 9 deletions
docker-compose.yml
with
34 additions
and
9 deletions
docker-compose.yml
+
34
−
9
View file @
60153318
mongo
:
image
:
mongo
# volumes:
# - ./data/runtime/db:/data/db
# - ./data/dump:/dump
command
:
mongod --smallfiles --oplogSize
128
rocketchat
:
rocketchat
:
image
:
rocketchat/rocket.chat:latest
image
:
rocketchat/rocket.chat:latest
# volumes:
# volumes:
# - ./uploads:/app/uploads
# - ./uploads:/app/uploads
environment
:
environment
:
-
PORT=3000
-
PORT=3000
-
ROOT_URL=http://
your
host:3000
-
ROOT_URL=http://
local
host:3000
-
MONGO_URL=mongodb://mongo:27017/rocketchat
-
MONGO_URL=mongodb://mongo:27017/rocketchat
-
MONGO_OPLOG_URL=mongodb://mongo: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
...
@@ -20,10 +14,28 @@ rocketchat:
...
@@ -20,10 +14,28 @@ rocketchat:
-
mongo:mongo
-
mongo:mongo
ports
:
ports
:
-
3000:3000
-
3000:3000
# labels:
# - "traefik.backend=rocketchat"
# - "traefik.frontend.rule=Host: your.domain.tld"
mongo
:
image
:
mongo:3.0
volumes
:
-
./data/db:/data/db
# - ./data/dump:/dump
command
:
mongod --smallfiles --oplogSize 128 --replSet rs0
# labels:
# - "traefik.enable=false"
mongo-init-replica
:
image
:
mongo:3.0
command
:
'
mongo
mongo/rocketchat
--eval
"rs.initiate({
_id:
'
'
rs0'
'
,
members:
[
{
_id:
0,
host:
'
'
localhost:27017'
'
}
]})"'
links
:
-
mongo:mongo
# 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:
v0.1.4
image
:
rocketchat/hubot-rocketchat:
latest
environment
:
environment
:
-
ROCKETCHAT_URL=rocketchat:3000
-
ROCKETCHAT_URL=rocketchat:3000
-
ROCKETCHAT_ROOM=GENERAL
-
ROCKETCHAT_ROOM=GENERAL
...
@@ -34,6 +46,19 @@ hubot:
...
@@ -34,6 +46,19 @@ hubot:
-
EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-diagnostics
-
EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-diagnostics
links
:
links
:
-
rocketchat:rocketchat
-
rocketchat:rocketchat
# labels:
# - "traefik.enable=false"
# volumes:
# - ./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
#traefik:
# image: traefik:latest
# command: traefik --docker --acme=true --acme.domains='your.domain.tld' --acme.email='your@email.tld' --acme.entrypoint=https --acme.storagefile=acme.json --defaultentrypoints=http --defaultentrypoints=https --entryPoints='Name:http Address::80 Redirect.EntryPoint:https' --entryPoints='Name:https Address::443 TLS.Certificates:'
# ports:
# - 80:80
# - 443:443
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment