Skip to content

Instantly share code, notes, and snippets.

@dealloc
Last active August 8, 2018 14:49
Show Gist options
  • Save dealloc/b4b9ba322f2e8279b45345718b698bea to your computer and use it in GitHub Desktop.
Save dealloc/b4b9ba322f2e8279b45345718b698bea to your computer and use it in GitHub Desktop.
Gitlab docker
web:
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
gitlab_rails['backup_path'] = '/var/opt/gitlab/backups'
ports:
- '9090:9090'
- '2224:22'
volumes:
- './gitlab/config:/etc/gitlab'
- './gitlab/logs:/var/log/gitlab'
- './gitlab/data:/var/opt/gitlab'
- './gitlab/backups:/var/opt/gitlab/backups'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment