add install mongo nginx gitlab portainer first version

This commit is contained in:
2019-04-03 16:09:58 +09:00
commit 5a089baf9e
5 changed files with 51 additions and 0 deletions

11
docker/gitlab.sh Normal file
View 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
View 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
View 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
View 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