Skip to content

Instantly share code, notes, and snippets.

@xywei
Created May 24, 2017 02:54
Show Gist options
  • Save xywei/e294337985e587407830096ecfcc09c3 to your computer and use it in GitHub Desktop.
Save xywei/e294337985e587407830096ecfcc09c3 to your computer and use it in GitHub Desktop.
Docker compose configs for GitLab on USB drives
gitlab:
container_name: gitlab
image: gitlab/gitlab-ce:latest
hostname: gitlab
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://127.0.0.1:8050'
gitlab_rails['gitlab_shell_ssh_port'] = 522
ports:
- "8050:8050"
- "522:22"
volumes:
- ~/.gitlab/config:/etc/gitlab
- ~/.gitlab/logs:/var/log/gitlab
- ~/.gitlab/data:/var/opt/gitlab
privileged: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment