-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
95 lines (83 loc) · 2.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: "2"
services:
database:
image: postgres:9.3
container_name: cicd_database
conjur:
container_name: cicd_conjur
image: cyberark/conjur
command: server
environment:
DATABASE_URL: postgres://postgres@database/postgres
CONJUR_DATA_KEY:
depends_on: [ database ]
ports:
- "8080:80"
- "8443:443"
client:
container_name: cicd_client
image: conjurinc/cli5
depends_on: [ conjur ]
entrypoint: sleep
command: infinity
environment:
CONJUR_APPLIANCE_URL: http://conjur
CONJUR_ACCOUNT:
CONJUR_AUTHN_API_KEY:
CONJUR_AUTHN_LOGIN: admin
artifactory:
container_name: cicd_artifactory
image: docker.bintray.io/jfrog/artifactory-oss:5.9.1
ports:
- "33081:8081"
- "33080:80"
jenkins:
container_name: cicd_jenkins
image: jenkins/jenkins:lts
# image: jenkinsci/blueocean
restart: always
environment:
- JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
- CONJUR_NETRC_PATH=/etc/conjur.identity
ports:
- "32080:8080"
- "32000:50000"
sonarqube:
container_name: cicd_sonar
image: sonarqube:lts
ports:
- "34000:9000"
gitlab:
container_name: cicd_gitlab
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: gitlab
environment:
GITLAB_ROOT_PASSWORD: "${GITLAB_ROOT_PASSWORD}"
GITLAB_ROOT_EMAIL: "${GITLAB_ROOT_EMAIL}"
GITLAB_EXT_URL: "http://gitlab.${SERVER_IP}.xip.io:31080"
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.${SERVER_IP}.xip.io:31080'
gitlab_rails['gitlab_shell_ssh_port'] = 2224
ports:
- '31080:31080'
- '31022:22'
gitlab_runner:
container_name: cicd_gitlab_runner
image: 'gitlab/gitlab-runner:latest'
restart: always
hostname: gitlab_runner
environment:
CONJUR_NETRC_PATH: "/etc/conjur.identity"
scope:
container_name: cicd_scope
image: weaveworks/scope:latest
network_mode: "host"
pid: "host"
privileged: true
labels:
- "works.weave.role=system"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
command:
- "--probe.docker=true"