Last active
November 26, 2020 14:08
-
-
Save kalw/fd1570016262debdf6476ea07b58cfe2 to your computer and use it in GitHub Desktop.
gitlab et runner docker compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.6" | |
services: | |
gitlab: | |
image: gitlab/gitlab-ce:latest | |
restart: always | |
ports: | |
- "24:22" | |
- "80:80" | |
- "443:443" | |
volumes: | |
- gitlab-data:/var/opt/gitlab | |
- gitlab-logs:/var/log/gitlab | |
- gitlab-config:/etc/gitlab | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'http://gitlab.127.0.0.1.nip.io/'; | |
gitlab_rails['lfs_enabled'] = true; | |
gitlab_rails['initial_shared_runners_registration_token'] = 'cuicuifitlagrenooouille' | |
runner: | |
image: gitlab/gitlab-runner:ubuntu | |
restart: always | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
external_links: | |
- gitlab:gitlab.127.0.0.1.nip.io | |
entrypoint: /bin/sh -c "((gitlab-runner list |grep $$(hostname) )|| gitlab-runner register --leave-runner --non-interactive --name $$(hostname) --url 'http://gitlab/' --registration-token cuicuifitlagrenooouille --executor "docker" --docker-image alpine:latest --tag-list docker --docker-privileged=false --run-untagged=true --docker-links='gitlab:gitlab.127.0.0.1.nip.io' --locked='false'; exit)&& gitlab-runner run" | |
volumes: | |
gitlab-data: | |
gitlab-logs: | |
gitlab-config: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment