Skip to content

Instantly share code, notes, and snippets.

@dodbrian
Last active February 15, 2019 18:22
Show Gist options
  • Save dodbrian/59406bd3126349cc9580ecfa1131c536 to your computer and use it in GitHub Desktop.
Save dodbrian/59406bd3126349cc9580ecfa1131c536 to your computer and use it in GitHub Desktop.
Gitlab Docker
web:
image: 'gitlab/gitlab-ce:latest'
container_name: gitlab
restart: always
hostname: 'localhost'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost:32700'
# Add any other gitlab.rb configuration here, each on its own line
ports:
- '32700:32700'
- '32701:443'
- '32702:22'
volumes:
- 'gitlab_config:/etc/gitlab'
- 'gitlab_logs:/var/log/gitlab'
- 'gitlab_data:/var/opt/gitlab'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment