Skip to content

Instantly share code, notes, and snippets.

@lcube45
Created January 18, 2019 13:11
Show Gist options
  • Save lcube45/5df08669a4c7f618e3a88b4a4b52d2cf to your computer and use it in GitHub Desktop.
Save lcube45/5df08669a4c7f618e3a88b4a4b52d2cf to your computer and use it in GitHub Desktop.
gitlab docker compose
web:
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.com'
# Add any other gitlab.rb configuration here, each on its own line
ports:
- '80:80'
- '443:443'
- '22:22'
volumes:
- './data/gitlab/config:/etc/gitlab'
- './data/gitlab/logs:/var/log/gitlab'
- './data/gitlab/data:/var/opt/gitlab'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment