-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
108 lines (100 loc) · 2.44 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
nexus:
build: ./nexus
container_name: nexus
ports:
- "18081:8081"
jenkins:
build: ./jenkins
container_name: jenkins
privileged: true
ports:
- "18080:8080"
links:
- nexus:nexus
- sonar:sonar
- gitlab:gitlab
- nginx:nginx
volumes:
- /var/docker/volumes/jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
- /lib/x86_64-linux-gnu/:/lib/x86_64-linux-gnu/
sonar:
build: ./sonar
container_name: sonar
ports:
- "19000:9000"
- "5432:5432"
environment:
- SONARQUBE_JDBC_USERNAME=db_user
- SONARQUBE_JDBC_PASSWORD=db_pass
- SONARQUBE_JDBC_URL=jdbc:postgresql://localhost:5432/sonar
- SONARQUBE_JDBC_MAXWAIT=300000
postgresql:
image: sameersbn/postgresql:9.4-3
net: container:sonar
environment:
- DB_USER=db_user
- DB_PASS=db_pass
- DB_NAME=sonar,gitlab
volumes:
- /var/docker/volumes/postgresql:/var/lib/postgresql
gitlab:
build: ./gitlab
container_name: gitlab
links:
- redis:redisio
- postgresql:postgresql
ports:
- "10080:80"
- "10022:22"
environment:
- TZ=GMT
- GITLAB_TIMEZONE=GMT
- DB_NAME=gitlab
- DB_USER=db_user
- DB_PASS=db_pass
- GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alphanumeric-string
- GITLAB_HOST=10.20.14.100
- GITLAB_PORT=10080
- GITLAB_SSH_PORT=10022
- GITLAB_NOTIFY_ON_BROKEN_BUILDS=true
- GITLAB_NOTIFY_PUSHER=false
- GITLAB_EMAIL=notifications@example.com
- GITLAB_EMAIL_REPLY_TO=noreply@example.com
- GITLAB_INCOMING_EMAIL_ADDRESS=reply@example.com
- GITLAB_BACKUPS=daily
- GITLAB_BACKUP_TIME=11:58
- SMTP_ENABLED=false
- SMTP_DOMAIN=www.example.com
- SMTP_HOST=smtp.gmail.com
- SMTP_PORT=587
- SMTP_USER=mailer@example.com
- SMTP_PASS=password
- SMTP_STARTTLS=true
- SMTP_AUTHENTICATION=login
- IMAP_ENABLED=false
- IMAP_HOST=imap.gmail.com
- IMAP_PORT=993
- IMAP_USER=mailer@example.com
- IMAP_PASS=password
- IMAP_SSL=true
- IMAP_STARTTLS=false
volumes:
- /var/docker/volumes/gitlab/gitlab:/home/git/data
redis:
image: sameersbn/redis:latest
volumes:
- /var/docker/volumes/gitlab/redis:/var/lib/redis
nginx:
build: ./nginx
container_name: nginx
ports:
- "15000:5000"
links:
- registry:registry
registry:
container_name: registry
image: registry:2.3.1
volumes:
- /var/docker/volumes/registry/data:/var/lib/registry