add install mongo nginx gitlab portainer first version
This commit is contained in:
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
|
Reference in New Issue
Block a user