Last active
January 6, 2021 11:18
-
-
Save is3ka1/7dd55866a2ba202aee053532bb401153 to your computer and use it in GitHub Desktop.
GitLab self-host docker-compose example
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
# docker-compose.yml | |
web: | |
image: 'gitlab/gitlab-ee:latest' | |
restart: always | |
hostname: '$GITLAB_HOSTNAME' | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'http://$GITLAB_HOSTNAME' | |
gitlab_rails['gitlab_shell_ssh_port'] = 2224 | |
# Add any other gitlab.rb configuration here, each on its own line | |
ports: | |
- '80:80' | |
- '2224:22' | |
volumes: | |
- '$GITLAB_HOME/config:/etc/gitlab' | |
- '$GITLAB_HOME/logs:/var/log/gitlab' | |
- '$GITLAB_HOME/data:/var/opt/gitlab' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment