Skip to content

Instantly share code, notes, and snippets.

@Alexfilus
Last active November 26, 2019 12:12
Show Gist options
  • Save Alexfilus/2447e4a0acdb62bdb52c2f9edb0877b9 to your computer and use it in GitHub Desktop.
Save Alexfilus/2447e4a0acdb62bdb52c2f9edb0877b9 to your computer and use it in GitHub Desktop.
docker gitlab
sudo docker run --detach \
  --hostname gitlab.example.com \
  --publish 8443:443 --publish 8080:80 --publish 2222:22 \
  --name gitlab \
  --restart always \
  --volume /srv/gitlab/config:/etc/gitlab \
  --volume /srv/gitlab/logs:/var/log/gitlab \
  --volume /srv/gitlab/data:/var/opt/gitlab \
  gitlab/gitlab-ce:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment