-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.36 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.36 KB
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
49
50
51
52
version: '2.2'
services:
dind:
image: docker:dind
hostname: dind
environment:
#DOCKER_TLS_CERTDIR: /certs
DOCKER_TLS_CERTDIR: "" #desabilitando o TLS
command: --insecure-registry gitlab:5005 #config o registry do gitlab como inseguro http
volumes:
- ./conf/dind/certs:/certs
privileged: true
links:
- gitlab
gitlab:
image: gitlab/gitlab-ce:latest
hostname: 'gitlab'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab'
gitlab_rails['registry_enabled'] = true
gitlab_rails['registry_host'] = "gitlab"
gitlab_rails['registry_port'] = "5005"
gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
registry_external_url 'http://gitlab:5005'
ports:
- "8081:80"
- "65005:5005"
mem_limit: 4096M
#cpus: 4
runner:
image: gitlab/gitlab-runner
depends_on:
- gitlab
#mem_limit: 4096M # caso queira limitar o uso de ram
#cpus: 2048 # caso queira limitar o uso de cpus
environment:
# TLS Ligado
#- DOCKER_HOST=tcp://dind:2376
#- DOCKER_TLS_CERTDIR=/certs
#- DOCKER_TLS_VERIFY=1
# TLS desligado
- DOCKER_HOST=tcp://dind:2375
volumes:
- ./conf/runner:/etc/gitlab-runner
#- ./conf/dind/certs/client:/certs/client:ro
links:
- dind
- gitlab