Skip to content

Instantly share code, notes, and snippets.

@detj
Created June 5, 2016 13:46
Show Gist options
  • Save detj/abe4a2062d5649307d9191bbebeb2b38 to your computer and use it in GitHub Desktop.
Save detj/abe4a2062d5649307d9191bbebeb2b38 to your computer and use it in GitHub Desktop.
Run Gitlab Docker Container
#!/bin/bash
# Replace hostname
HOSTNAME=[HOSTNAME HERE]
docker run --detach \
--hostname $HOSTNAME \
--publish 443:443 --publish 80:80 --publish 22:22 --publish 9418:9418 \
--name gitlab \
--restart always \
--volume /data/gitlab/config:/etc/gitlab \
--volume /data/gitlab/logs:/var/log/gitlab \
--volume /data/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