Correction nginx.conf, add gitlab install

This commit is contained in:
Mathieu Sanchez 2019-04-03 17:36:19 +09:00
parent 0f914ca1c8
commit 1a1b3c0b00
5 changed files with 6 additions and 23 deletions

View File

@ -48,5 +48,5 @@ http {
} }
} }
include applications/*.conf; include conf.d/*.conf;
} }

View File

@ -1,12 +0,0 @@
docker run --detach \
--name gitlab \
--publish 8001:80 \
--publish 44301:443 \
--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

View File

@ -1,5 +1,5 @@
apt-get install nginx
cp ./docker/conf/nginx.conf /etc/nginx/ cp ./docker/conf/nginx.conf /etc/nginx/
cp ./docker/conf/mime.types /etc/nginx/ cp ./docker/conf/mime.types /etc/nginx/
cp ./docker/conf/applications/* /etc/nginx/conf.d/ cp ./docker/conf/applications/* /etc/nginx/conf.d/
apt-get install nginx

View File

@ -1,8 +0,0 @@
docker volume create portainer_data;
docker run --detach \
--name portainer \
--publish 8003:9000 \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume portainer_data:/data \
--restart unless-stopped \
portainer/portainer:latest

View File

@ -20,3 +20,6 @@ apt-get install docker-ce docker-ce-cli containerd.io
# Launch Install Script # Launch Install Script
./docker/install-nginx.sh ./docker/install-nginx.sh
./docker/install-portainer.sh
service nginx restart