mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-30 02:48:27 +08:00
18 lines
557 B
YAML
18 lines
557 B
YAML
version: '2'
|
|
services:
|
|
runner:
|
|
build: .
|
|
container_name: gitlab-runner
|
|
restart: always
|
|
volumes:
|
|
- ./data:/home/gitlab_ci_multi_runner/data:z
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
- CI_SERVER_URL=http://192.168.3.231:10080/ci
|
|
- RUNNER_TOKEN=ziz3YmA9fqaQ4K1wVmAU
|
|
- RUNNER_DESCRIPTION=new-docker-executor
|
|
- RUNNER_EXECUTOR=shell
|
|
extra_hosts:
|
|
- "gitlab.foo.com:192.168.3.231"
|