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
28c53c80
Unverified
Commit
28c53c80
authored
7 years ago
by
Diego Sampaio
Browse files
Options
Downloads
Patches
Plain Diff
Change docker-compose.yml for development purposes
parent
e7e07851
No related branches found
Branches containing commit
Tags
7.4.0-rc.1
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.dockerignore
+3
-1
3 additions, 1 deletion
.dockerignore
Dockerfile
+12
-0
12 additions, 0 deletions
Dockerfile
docker-compose-example.yml
+73
-0
73 additions, 0 deletions
docker-compose-example.yml
docker-compose.yml
+1
-56
1 addition, 56 deletions
docker-compose.yml
with
89 additions
and
57 deletions
.dockerignore
+
3
−
1
View file @
28c53c80
**/node_modules/*
**/.meteor/local*
.git
.git
.gitignore
.gitignore
LICENSE
LICENSE
README.md
README.md
docker-compose.yml
docker-compose.yml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
12
−
0
View file @
28c53c80
FROM
debian:jessie
RUN
apt-get update
-y
\
&&
apt-get
install
-y
curl bzip2 build-essential python git
\
&&
curl
-sL
https://install.meteor.com |
sed
s/--progress-bar/-sL/g | /bin/sh
\
&&
apt-get autoremove
-y
ADD
. /app
WORKDIR
/app
CMD
["meteor", "npm", "start"]
This diff is collapsed.
Click to expand it.
docker-compose-example.yml
0 → 100644
+
73
−
0
View file @
28c53c80
version
:
'
2'
services
:
rocketchat
:
image
:
rocketchat/rocket.chat:latest
restart
:
unless-stopped
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
depends_on
:
-
mongo
ports
:
-
3000:3000
labels
:
-
"
traefik.backend=rocketchat"
-
"
traefik.frontend.rule=Host:
your.domain.tld"
mongo
:
image
:
mongo:3.2
restart
:
unless-stopped
volumes
:
-
./data/db:/data/db
#- ./data/dump:/dump
command
:
mongod --smallfiles --oplogSize 128 --replSet rs0
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:3.2
command
:
'
mongo
mongo/rocketchat
--eval
"rs.initiate({
_id:
'
'
rs0'
'
,
members:
[
{
_id:
0,
host:
'
'
localhost:27017'
'
}
]})"'
depends_on
:
-
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=rocketchat:3000
-
ROCKETCHAT_ROOM=GENERAL
-
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.
docker-compose.yml
+
1
−
56
View file @
28c53c80
...
@@ -2,65 +2,10 @@ version: '2'
...
@@ -2,65 +2,10 @@ version: '2'
services
:
services
:
rocketchat
:
rocketchat
:
image
:
rocketchat/rocket.chat:latest
build
:
.
restart
:
unless-stopped
restart
:
unless-stopped
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
depends_on
:
-
mongo
ports
:
ports
:
-
3000:3000
-
3000:3000
labels
:
-
"
traefik.backend=rocketchat"
-
"
traefik.frontend.rule=Host:
your.domain.tld"
mongo
:
image
:
mongo:3.2
restart
:
unless-stopped
volumes
:
-
./data/db:/data/db
#- ./data/dump:/dump
command
:
mongod --smallfiles --oplogSize 128 --replSet rs0
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:3.2
command
:
'
mongo
mongo/rocketchat
--eval
"rs.initiate({
_id:
'
'
rs0'
'
,
members:
[
{
_id:
0,
host:
'
'
localhost:27017'
'
}
]})"'
depends_on
:
-
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=rocketchat:3000
-
ROCKETCHAT_ROOM=GENERAL
-
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:
#traefik:
# image: traefik:latest
# image: traefik:latest
...
...
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