-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (41 loc) · 1.17 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3.4'
services:
gitlab_runner:
build:
context: ./
dockerfile: ./dockerfile
image: gitlab_runner:${VERSION:?lost VERSION variable}
container_name: gitlab_runner-${RUNNER_DESCRIPTION:?lost RUNNER_DESCRIPTION variable}
environment:
- RUNNER_URL=${RUNNER_URL:?lost RUNNER_URL variable}
- RUNNER_DESCRIPTION=${RUNNER_DESCRIPTION:?lost RUNNER_DESCRIPTION variable}
- RUNNER_TOKEN=${RUNNER_TOKEN:?lost RUNNER_TOKEN variable}
- RUNNER_TAGS=${RUNNER_TAGS}
- RUNNER_CONCURRENT_JOB_COUNT=${RUNNER_CONCURRENT_JOB_COUNT:-1}
restart: always
depends_on:
- registry_proxy
healthcheck:
test: curl -f http://localhost:9252/metrics
interval: 20s
timeout: 10s
retries: 3
start_period: 5s
tmpfs:
- /etc/gitlab-runner
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- local
registry_proxy:
build:
context: ./
dockerfile: ./proxy/dockerfile
image: registry_proxy:${VERSION_PROXY:?lost VERSION_PROXY variable}
container_name: registry_proxy
restart: always
networks:
- local
networks:
local:
driver: bridge