-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
48 lines (45 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
46
47
48
version: "3"
services:
gitlab:
image: gitlab/gitlab-ce:latest
container_name: gitlab-lab
hostname: gitlab-lab
privileged: true
environment:
GITLAB_ROOT_PASSWORD: GitLabAdmin
GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN: RunnerToken1
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://${PRIMARY_IP}:9080'
pages_external_url "http://gitlab-lab:9080/"
ports:
- "9080:9080"
- "9443:443"
- "9022:22"
gitlab-runner:
image: gitlab/gitlab-runner:latest
container_name: runner-lab
hostname: runner-lab
environment:
REGISTRATION_TOKEN: RunnerToken1
REGISTER_NON_INTERACTIVE: "true"
CI_SERVER_URL: http://${PRIMARY_IP}:9080
RUNNER_NAME: LAB-RUNNER
RUNNER_EXECUTOR: docker
DOCKER_IMAGE: docker:stable
DOCKER_PRIVILEGED: "true"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
registry:
image: registry
container_name: gitlab-registry
hostname: gitlab-registry
ports:
- "5000:5000"
batfish:
image: batfish
container_name: gitlab-batfish
hostname: gitlab-batfish
ports:
- "9996:9996"
- "9997:9997"
- "9998:9998"