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
1f867246
Unverified
Commit
1f867246
authored
8 years ago
by
Diego Sampaio
Browse files
Options
Downloads
Patches
Plain Diff
Update docker-compose to version 2
And start using depends_on
parent
2a86c90a
No related branches found
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
+69
-60
69 additions, 60 deletions
docker-compose.yml
with
69 additions
and
60 deletions
docker-compose.yml
+
69
−
60
View file @
1f867246
rocketchat
:
version
:
'
2'
image
:
rocketchat/rocket.chat:latest
volumes
:
-
./uploads:/app/uploads
environment
:
-
PORT=3000
-
ROOT_URL=http://localhost:3000
-
MONGO_URL=mongodb://mongo:27017/rocketchat
-
MONGO_OPLOG_URL=mongodb://mongo:27017/local
-
MAIL_URL=smtp://smtp.email
-
HTTP_PROXY=http://proxy.domain.com
-
HTTPS_PROXY=http://proxy.domain.com
links
:
-
mongo:mongo
ports
:
-
3000:3000
labels
:
-
"
traefik.backend=rocketchat"
-
"
traefik.frontend.rule=Host:
your.domain.tld"
mongo
:
services
:
image
:
mongo:3.2
rocketchat
:
volumes
:
image
:
rocketchat/rocket.chat:latest
-
./data/db:/data/db
restart
:
unless-stopped
# - ./data/dump:/dump
volumes
:
command
:
mongod --smallfiles --oplogSize 128 --replSet rs0
-
./uploads:/app/uploads
labels
:
environment
:
-
"
traefik.enable=false"
-
PORT=3000
-
ROOT_URL=http://localhost:3000
-
MONGO_URL=mongodb://mongo:27017/rocketchat
-
MONGO_OPLOG_URL=mongodb://mongo:27017/local
-
MAIL_URL=smtp://smtp.email
-
HTTP_PROXY=http://proxy.domain.com
-
HTTPS_PROXY=http://proxy.domain.com
depends_on
:
-
mongo
ports
:
-
3000:3000
labels
:
-
"
traefik.backend=rocketchat"
-
"
traefik.frontend.rule=Host:
your.domain.tld"
mongo-init-replica
:
mongo
:
image
:
mongo:3.2
image
:
mongo:3.2
command
:
'
mongo
mongo/rocketchat
--eval
"rs.initiate({
_id:
'
'
rs0'
'
,
members:
[
{
_id:
0,
host:
'
'
localhost:27017'
'
}
]})"'
restart
:
unless-stopped
links
:
volumes
:
-
mongo:mongo
-
./data/db:/data/db
#- ./data/dump:/dump
command
:
mongod --smallfiles --oplogSize 128 --replSet rs0
labels
:
-
"
traefik.enable=false"
# hubot, the popular chatbot (add the bot user first and change the password before starting this image)
# this container's job is just run the command to initialize the replica set.
hubot
:
# it will run the command and remove himself (it will not stay running)
image
:
rocketchat/hubot-rocketchat:latest
mongo-init-replica
:
environment
:
image
:
mongo:3.2
-
ROCKETCHAT_URL=rocketchat:3000
command
:
'
mongo
mongo/rocketchat
--eval
"rs.initiate({
_id:
'
'
rs0'
'
,
members:
[
{
_id:
0,
host:
'
'
localhost:27017'
'
}
]})"'
-
ROCKETCHAT_ROOM=GENERAL
depends_on
:
-
ROCKETCHAT_USER=bot
-
mongo
-
ROCKETCHAT_PASSWORD=botpassword
-
BOT_NAME=bot
# 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
links
:
-
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
ports
:
-
3001:8080
#traefik:
# hubot, the popular chatbot (add the bot user first and change the password before starting this image)
# image: traefik:latest
hubot
:
# 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:'
image
:
rocketchat/hubot-rocketchat:latest
# ports:
restart
:
unless-stopped
# - 80:80
environment
:
# - 443:443
-
ROCKETCHAT_URL=rocketchat:3000
# volumes:
-
ROCKETCHAT_ROOM=GENERAL
# - /var/run/docker.sock:/var/run/docker.sock
-
ROCKETCHAT_USER=bot
-
ROCKETCHAT_PASSWORD=botpassword
-
BOT_NAME=bot
# 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
depends_on
:
-
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
ports
:
-
3001:8080
#traefik:
# image: traefik:latest
# restart: unless-stopped
# 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