Skip to content

Instantly share code, notes, and snippets.

@is3ka1
Last active January 6, 2021 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save is3ka1/7dd55866a2ba202aee053532bb401153 to your computer and use it in GitHub Desktop.
Save is3ka1/7dd55866a2ba202aee053532bb401153 to your computer and use it in GitHub Desktop.
GitLab self-host docker-compose example
# 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