Created
April 6, 2017 07:36
-
-
Save boiyama/393cf873dc08bc74332ef3a145d41e23 to your computer and use it in GitHub Desktop.
docker-compose.yml configuring GitLab with Container Registry, Pages, CI, and Mattermost (enabled WebRTC)
This file contains 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: | |
gitlab: | |
container_name: gitlab | |
image: gitlab/gitlab-ce:latest | |
restart: always | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
## GitLab configuration settings | |
##! Check out the latest version of this file to know about the different | |
##! settings that can be configured by this file, which may be found at: | |
##! https://gitlab.com/gitlab-org/omnibus-gitlab/raw/master/files/gitlab-config-template/gitlab.rb.template | |
## GitLab URL | |
##! URL on which GitLab will be reachable. | |
##! For more details on configuring external_url see: | |
##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab | |
external_url 'http://gitlab.example.com' | |
################################################################################ | |
## gitlab.yml configuration | |
##! Docs: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/gitlab.yml.md | |
################################################################################ | |
gitlab_rails['gitlab_ssh_host'] = 'ssh.gitlab.example.com' | |
gitlab_rails['time_zone'] = 'UTC' | |
################################################################################ | |
## Container Registry settings | |
##! Docs: https://docs.gitlab.com/ce/administration/container_registry.html | |
################################################################################ | |
registry_external_url 'http://registry.gitlab.example.com' | |
################################################################################ | |
## GitLab Pages | |
##! Docs: https://docs.gitlab.com/ce/pages/administration.html | |
################################################################################ | |
pages_external_url 'http://pages.example.com/' | |
################################################################################ | |
## GitLab Mattermost | |
##! Docs: https://docs.gitlab.com/omnibus/gitlab-mattermost | |
################################################################################ | |
mattermost_external_url 'http://mattermost.example.com' | |
mattermost['webrtc_enable'] = true | |
mattermost['webrtc_gateway_websocket_url'] = 'ws://mattermost.example.com:8188' | |
mattermost['webrtc_gateway_admin_url'] = 'http://mattermost.example.com:7088/admin' | |
mattermost['webrtc_gateway_admin_secret'] = 'janusoverlord' | |
volumes_from: | |
- gitlab-data | |
ports: | |
- "80:80" | |
- "2222:22" | |
gitlab-data: | |
image: busybox | |
volumes: | |
- /etc/gitlab | |
- /var/log/gitlab | |
- /var/opt/gitlab | |
gitlab-runner: | |
container_name: gitlab-runner | |
image: gitlab/gitlab-runner:alpine | |
restart: always | |
volumes_from: | |
- gitlab-runner-data | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock" | |
- "$HOME/.docker/config.json:/root/.docker/config.json" | |
gitlab-runner-data: | |
image: busybox | |
volumes: | |
- /etc/gitlab-runner | |
mattermost-webrtc: | |
container_name: mattermost-webrtc | |
image: mattermost/webrtc:latest | |
restart: always | |
ports: | |
- "7088:7088" | |
- "8188:8188" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment