From 5a8cb9946f9c4ef0e94517218596179f89d57efa Mon Sep 17 00:00:00 2001 From: Vahagn Khachatryan Date: Sun, 16 Feb 2020 21:38:24 +0000 Subject: [PATCH] Docker scripts. --- bin/docker-gitlab.sh | 12 ++++++++++++ bin/docker-nextcloud.sh | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100755 bin/docker-gitlab.sh create mode 100755 bin/docker-nextcloud.sh diff --git a/bin/docker-gitlab.sh b/bin/docker-gitlab.sh new file mode 100755 index 0000000..e69721a --- /dev/null +++ b/bin/docker-gitlab.sh @@ -0,0 +1,12 @@ +sudo docker run --detach \ + --name gitlab \ + --hostname gitlab \ + --env GITLAB_OMNIBUS_CONFIG="external_url 'http://gitlab.vostan.org/'; gitlab_rails['lfs_enabled'] = true; gitlab_rails['gitlab_signin_enabled'] = false;" \ + --publish 8443:443 \ + --publish 8080:80 \ + --publish 8022:22 \ + --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 diff --git a/bin/docker-nextcloud.sh b/bin/docker-nextcloud.sh new file mode 100755 index 0000000..b1b1bdb --- /dev/null +++ b/bin/docker-nextcloud.sh @@ -0,0 +1,7 @@ +sudo docker run \ + --name nextcloud \ + -d \ + --publish 8090:80 \ + --restart always \ + --volume /srv/nextcloud:/var/www/html \ + nextcloud