Reorganise docker-compose file

This commit is contained in:
Wojciech Kozlowski 2018-12-18 21:12:11 +00:00
parent c5b7573347
commit 3255e9e727

View File

@ -99,6 +99,19 @@ services:
- ./gitlab/ssh_config:/etc/ssh/ssh_config
restart: always
# See https://docs.gitlab.com/ee/ci/docker/using_docker_build.html for how to
# register the runner for running docker-in-docker builds. Note the need to
# set docker-privileged.
runner-0:
container_name: runner-0
image: gitlab/gitlab-runner
volumes:
- runner_0_etc:/etc/gitlab-runner
- runner_0_home:/home/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
restart: always
# ---------------------------------------------------------------------------
# Reverse proxy served by Nginx.
# ---------------------------------------------------------------------------
@ -120,19 +133,3 @@ services:
- ./proxy/nginx-conf.d:/etc/nginx/conf.d:ro
- letsencrypt:/etc/letsencrypt
restart: always
# ---------------------------------------------------------------------------
# Gitlab runners for CI.
# ---------------------------------------------------------------------------
# See https://docs.gitlab.com/ee/ci/docker/using_docker_build.html for how to
# register the runner for running docker-in-docker builds. Note the need to
# set docker-privileged.
runner-0:
container_name: runner-0
image: gitlab/gitlab-runner
volumes:
- runner_0_etc:/etc/gitlab-runner
- runner_0_home:/home/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
restart: always