add install mongo nginx gitlab portainer first version
This commit is contained in:
commit
5a089baf9e
11
docker/gitlab.sh
Normal file
11
docker/gitlab.sh
Normal file
@ -0,0 +1,11 @@
|
||||
docker run --detach /
|
||||
--name gitlab \
|
||||
--publish 8001:80
|
||||
--publish 2201:22 \
|
||||
--hostname gitlab.c2a-system.dev \
|
||||
--env GITLAB_OMNIBUS_CONFIG=\"external_url 'http://gitlab.c2a-system.dev/'; gitlab_rails['gitlab_shell_ssh_port'] = 2201;\" \
|
||||
--volume /srv/gitlab/config:/etc/gitlab \
|
||||
--volume /srv/gitlab/logs:/var/log/gitlab \
|
||||
--volume /srv/gitlab/data:/var/opt/gitlab \
|
||||
--restart unless-stopped \
|
||||
gitlab/gitlab-ce:latest
|
7
docker/mongo.sh
Normal file
7
docker/mongo.sh
Normal file
@ -0,0 +1,7 @@
|
||||
docker run --detach /
|
||||
--name mongo \
|
||||
-p 27017:27017 \
|
||||
-e MONGO_INITDB_ROOT_USERNAME=c2a \
|
||||
-e MONGO_INITDB_ROOT_PASSWORD=admin \
|
||||
--restart unless-stopped \
|
||||
mongo
|
6
docker/nginx.sh
Normal file
6
docker/nginx.sh
Normal file
@ -0,0 +1,6 @@
|
||||
docker run --detach /
|
||||
--name gitlab \
|
||||
--publish 80:80 \
|
||||
--publish 443:443 \
|
||||
--restart unless-stopped \
|
||||
nginx:latest
|
8
docker/portainer.sh
Normal file
8
docker/portainer.sh
Normal file
@ -0,0 +1,8 @@
|
||||
docker volume create portainer_data
|
||||
docker run --detach /
|
||||
--name portainer
|
||||
--publish 8002:9000 \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v portainer_data:/data \
|
||||
--restart unless-stopped \
|
||||
portainer/portainer:latest
|
19
install.sh
Normal file
19
install.sh
Normal file
@ -0,0 +1,19 @@
|
||||
# Update debian
|
||||
apt-get update; apt-get upgrade
|
||||
|
||||
# Installation of Docker
|
||||
apt-get remove docker docker-engine docker.io containerd runc
|
||||
apt-get install \
|
||||
apt-transport-https \
|
||||
ca-certificates \
|
||||
curl \
|
||||
gnupg2 \
|
||||
software-properties-common
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
|
||||
apt-key fingerprint 0EBFCD88
|
||||
add-apt-repository \
|
||||
"deb [arch=amd64] https://download.docker.com/linux/debian \
|
||||
$(lsb_release -cs) \
|
||||
stable"
|
||||
apt-get update
|
||||
apt-get install docker-ce docker-ce-cli containerd.io
|
Loading…
Reference in New Issue
Block a user