forked from hypery2k/ContinuousToolBox
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
149 lines (132 loc) · 3.49 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
version: '2.1'
services:
jenkins:
container_name: buildbox_jenkins
build: ./docker/jenkins
ports:
- "${JENKINS_SERVER_PORT}:8080"
- "8100:50000"
volumes:
- ${JENKINS_DATA_DIR}/home:/var/jenkins_home
healthcheck:
test: ["CMD", "wget", "http://localhost:${JENKINS_SERVER_PORT}/login"]
interval: 30s
timeout: 10s
retries: 5
environment:
- JENKINS_ADMIN_USER
- JENKINS_ADMIN_PASS
- JENKINS_ADMIN_ADDR
- JENKINS_SERVER_PORT
- JENKINS_IMAGE_VERSION
- JENKINS_DATA_DIR
- JENKINS_EXECUTORS
- JENKINS_GIT_NAME
- JENKINS_GIT_EMAIL
- JENKINS_SLAVE_AGENT_PORT
- JENKINS_QUIET_PERIOD
links:
- gitlab
- sonar
- nexus
- seleniumhub
redis:
container_name: buildbox_gitlab_redis
restart: always
image: sameersbn/redis:latest
command:
- --loglevel warning
volumes:
- ${GITLAB_REDIS_DIR}:/var/lib/redis:Z
postgresql:
container_name: buildbox_gitlab_db
restart: always
image: sameersbn/postgresql:9.6-2
volumes:
- ${GITLAB_DB_DIR}:/var/lib/postgresql:Z
environment:
- DB_USER=gitlab
- DB_PASS=password
- DB_NAME=gitlabhq_production
- DB_EXTENSION=pg_trgm
gitlab:
container_name: buildbox_gitlab
image: sameersbn/gitlab:${GITLAB_VERSION}
depends_on:
- postgresql
- redis
links:
- postgresql
- redis
ports:
- "8222:22"
- "8280:80"
- "8243:443"
volumes:
- ${GITLAB_DATA_DIR}/home:/home/git/data:Z
environment:
- DEBUG=false
- DB_ADAPTER=postgresql
- DB_HOST=postgresql
- DB_PORT=5432
- DB_USER=gitlab
- DB_PASS=password
- DB_NAME=gitlabhq_production
- REDIS_HOST=redis
- REDIS_PORT=6379
- TZ=Asia/Kolkata
- GITLAB_TIMEZONE=Kolkata
- GITLAB_HTTPS=false
- SSL_SELF_SIGNED=false
- GITLAB_HOST=localhost
- GITLAB_PORT=${GITLAB_HTTP_PORT}
- GITLAB_SSH_PORT=${GITLAB_SSH_PORT}
- GITLAB_RELATIVE_URL_ROOT=
- GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alphanumeric-string
- GITLAB_SECRETS_SECRET_KEY_BASE=long-and-random-alphanumeric-string
- GITLAB_SECRETS_OTP_KEY_BASE=long-and-random-alphanumeric-string
- GITLAB_ROOT_PASSWORD=password
- GITLAB_ROOT_EMAIL=
- GITLAB_NOTIFY_ON_BROKEN_BUILDS=true
- GITLAB_NOTIFY_PUSHER=false
- GITLAB_BACKUP_SCHEDULE=daily
- GITLAB_BACKUP_TIME=01:00
nexus:
container_name: buildbox_nexus
image: sonatype/nexus3:${NEXUS_VERSION}
ports:
- "8381:8081"
volumes:
- ${NEXUS_DATA_DIR}/data:/nexus-data
sonar:
container_name: buildbox_sonar
image: sonarqube:${SONAR_VERSION}
ports:
- "8400:9000"
- "8492:9092"
volumes:
- ${SONAR_DATA_DIR}/data:/opt/sonarqube/data
seleniumhub:
container_name: buildbox_selenium_hub
image: selenium/hub
ports:
- "8544:4444"
firefox:
container_name: buildbox_selenium_node_firefox
image: selenium/node-firefox
depends_on:
- seleniumhub
environment:
- HUB_PORT_4444_TCP_ADDR=seleniumhub
- HUB_PORT_4444_TCP_PORT=4444
chrome:
container_name: buildbox_selenium_node_chrome
image: selenium/node-chrome
depends_on:
- seleniumhub
environment:
- HUB_PORT_4444_TCP_ADDR=seleniumhub
- HUB_PORT_4444_TCP_PORT=4444