Created
February 2, 2017 05:37
-
-
Save MegaBlackLabel/8c1985480553e167b2564507954e53d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
rocketchat: | |
image: rocketchat/rocket.chat:latest | |
container_name: rocketchat.[サーバ名] | |
restart: unless-stopped | |
volumes: | |
- /[PATH]/docker/rocketchat/app/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://jp.mail.nikon.co.jp | |
- HTTP_PROXY=http://[proxy url]:8080 | |
- HTTPS_PROXY=http://[proxy url]:8080 | |
- NO_PROXY=[サーバ名] | |
- TZ=Asia/Tokyo | |
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: | |
- /[PATH]/docker/rocketchat/data/db:/data/db | |
- /[PATH]/docker/rocketchat/data/dump:/[PATH]/docker/rocketchat/dump | |
environment: | |
- TZ=Asia/Tokyo | |
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 | |
container_name: hubot.[サーバ名] | |
restart: unless-stopped | |
environment: | |
- ROCKETCHAT_URL=rocketchat:3000 | |
- ROCKETCHAT_ROOM= | |
- LISTEN_ON_ALL_PUBLIC=true | |
- ROCKETCHAT_USER=bot | |
- ROCKETCHAT_PASSWORD=botpassword | |
- BOT_NAME=bot | |
- TZ=Asia/Tokyo | |
- HTTP_PROXY=http://[proxy url]:8080 | |
- HTTPS_PROXY=http://[proxy url]:8080 | |
- NO_PROXY=[サーバ名] | |
# 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: | |
- /[PATH]/docker/rocketchat/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 | |
gitbucket: | |
image: f99aq8ove/gitbucket | |
container_name: gitbucket.[サーバ名] | |
environment: | |
- GITBUCKET_OPTS=--prefix=/ | |
- GITBUCKET_DB_URL=jdbc:mysql://db/gitbucket?useUnicode=true&characterEncoding=utf8 | |
- GITBUCKET_DB_USER=gitbucket | |
- GITBUCKET_DB_PASSWORD=gitbucket | |
- TZ=Asia/Tokyo | |
depends_on: | |
- db | |
volumes: | |
- /[PATH]/docker/gitbucket/app:/gitbucket | |
ports: | |
- 29418:29418 | |
- 4001:8080 | |
# gitbucket db | |
db: | |
image: mysql | |
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci | |
volumes: | |
- /[PATH]/docker/gitbucket/db:/var/lib/mysql | |
restart: always | |
environment: | |
- MYSQL_ROOT_PASSWORD=gitbucket | |
- MYSQL_DATABASE=gitbucket | |
- MYSQL_USER=gitbucket | |
- MYSQL_PASSWORD=gitbucket | |
- TZ=Asia/Tokyo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment