mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-01-18 06:34:31 -05:00
18 lines
585 B
Bash
18 lines
585 B
Bash
|
#!/usr/bin/env bash
|
||
|
mkdir -p mkdir -p /var/lib/docker/storage/gitlab/{config,logs,data} &&
|
||
|
chmod -Rf 777 /var/lib/docker/storage/gitlab
|
||
|
|
||
|
docker run -d \
|
||
|
--name gitlab \
|
||
|
--privileged \
|
||
|
--hostname gitlab \
|
||
|
--publish 3443:443 \
|
||
|
--publish 3001:80 \
|
||
|
--publish 7822:22 \
|
||
|
--restart always \
|
||
|
--volume /var/lib/docker/storage/gitlab/config:/etc/gitlab \
|
||
|
--volume /var/lib/docker/storage/gitlab/logs:/var/log/gitlab \
|
||
|
--volume /var/lib/docker/storage/gitlab/data:/var/opt/gitlab \
|
||
|
--volume /etc/letsencrypt:/etc/letsencrypt \
|
||
|
registry.casjay.in/latest/gitlab-ce:latest
|