forked from marcelbirkner/docker-ci-tool-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
149 lines (133 loc) · 2.7 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'
networks:
prodnetwork:
driver: bridge
services:
nexus:
build: ./nexus
ports:
- "18081:8081"
networks:
- prodnetwork
jenkins:
build: ./jenkins
ports:
- "18080:8080"
networks:
- prodnetwork
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/usr/bin/docker
depends_on:
- nexus
- gitlab
- sonar
- selhub
environment:
- NEXUS_PORT=8081
- SONAR_PORT=9000
- SONAR_DB_PORT=5432
sonar:
build: ./sonar
ports:
- "19000:9000"
- "5432:5432"
networks:
- prodnetwork
depends_on:
- sonardb
environment:
- SONARQUBE_JDBC_URL=jdbc:postgresql://sonardb:5432/sonar
sonardb:
networks:
- prodnetwork
image: postgres
environment:
- POSTGRES_USER=sonar
- POSTGRES_PASSWORD=sonar
selhub:
image: selenium/hub
ports:
- 4444:4444
networks:
- prodnetwork
nodeff:
image: selenium/node-firefox-debug
ports:
- 5900
networks:
- prodnetwork
environment:
- HUB_PORT_4444_TCP_ADDR=selhub
depends_on:
- selhub
nodechrome:
image: selenium/node-chrome-debug
ports:
- 5900
networks:
- prodnetwork
environment:
- HUB_PORT_4444_TCP_ADDR=selhub
depends_on:
- selhub
db2:
image: postgres
environment:
- POSTGRES_USER=gitlab
- POSTGRES_PASSWORD=gitlab
- POSTGRES_DB=gitlab
networks:
- prodnetwork
gitlab:
image: sameersbn/gitlab:8.3.2
ports:
- "10080:80"
- "10022:22"
networks:
- prodnetwork
depends_on:
- db2
- redis
environment:
- DB_HOST=db2
- DB_NAME=gitlab
- DB_USER=gitlab
- DB_PASS=gitlab
- REDIS_HOST=redis
- TZ=Europe/Madrid
- GITLAB_TIMEZONE=Madrid
- GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alphanumeric-string
- GITLAB_HOST=localhost
- GITLAB_PORT=10080
- GITLAB_SSH_PORT=10022
- GITLAB_NOTIFY_ON_BROKEN_BUILDS=true
- GITLAB_NOTIFY_PUSHER=false
- GITLAB_BACKUPS=daily
- GITLAB_BACKUP_TIME=01:00
- SMTP_ENABLED=false
- SMTP_DOMAIN=www.example.com
- SMTP_HOST=smtp.gmail.com
- SMTP_PORT=587
- SMTP_PASS=password
- SMTP_STARTTLS=true
- SMTP_AUTHENTICATION=login
- IMAP_ENABLED=false
- IMAP_HOST=imap.gmail.com
- IMAP_PORT=993
- IMAP_PASS=password
- IMAP_SSL=true
- IMAP_STARTTLS=false
volumes:
- /srv/docker/gitlab/gitlab:/home/git/data
redis:
image: sameersbn/redis:latest
networks:
- prodnetwork
volumes:
- /srv/docker/gitlab/redis:/var/lib/redis