Skip to content

Instantly share code, notes, and snippets.

@juanitoddd
Created June 1, 2018 12:26
Show Gist options
  • Save juanitoddd/38024e0a5e32cb72edea393974e9f1ce to your computer and use it in GitHub Desktop.
Save juanitoddd/38024e0a5e32cb72edea393974e9f1ce to your computer and use it in GitHub Desktop.
Gitlab docker-compose
gitlab:
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'localhost'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost:9090'
gitlab_rails['gitlab_shell_ssh_port'] = 2224
ports:
- '9090:9090'
- '2224:22'
volumes:
- '/srv/gitlab/config:/etc/gitlab'
- '/srv/gitlab/logs:/var/log/gitlab'
- '/srv/gitlab/data:/var/opt/gitlab'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment