Skip to content

Instantly share code, notes, and snippets.

@cubenuri
Created August 17, 2019 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cubenuri/455199a7fecd38cb1a8170a1c2f2787c to your computer and use it in GitHub Desktop.
Save cubenuri/455199a7fecd38cb1a8170a1c2f2787c to your computer and use it in GitHub Desktop.
web:
container_name : gitlab
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.example.com'
ports:
- '80:80'
- '443:443'
- '1022: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