Skip to content

Instantly share code, notes, and snippets.

@mattmusc
Created August 14, 2019 10:11
Show Gist options
  • Select an option

  • Save mattmusc/72b74406732b88f4851f2ee67f586b0e to your computer and use it in GitHub Desktop.

Select an option

Save mattmusc/72b74406732b88f4851f2ee67f586b0e to your computer and use it in GitHub Desktop.
Set up Gitlab in docker
version: 3
services:
gitlab-ce:
ports:
- '8443:443'
- '8000:80'
- '2222:22'
volumes:
- '/srv/gitlab/config:/etc/gitlab'
- '/srv/gitlab/logs:/var/log/gitlab'
- '/srv/gitlab/data:/var/opt/gitlab'
restart: always
logging:
options:
max-size: 1g
container_name: gitlab
image: 'gitlab/gitlab-ce:latest'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment