1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ # This compose file is provided with the purposes of locally testing datasources that can be Dockerized.
18
+
19
+ version : " 3"
20
+ services :
21
+
22
+ mysql-ds :
23
+ image : mysql:8
24
+ volumes :
25
+ - ./.docker/mysql-ds:/var/lib/mysql
26
+ # init.sql only runs on bootstrap. If you want to manually add the extra databases, run the SQL statements in the init.sql as MySQL root user
27
+ - ./backend/scripts/docker/mysql/init-ds.sql:/docker-entrypoint-initdb.d/init-ds.sql:ro
28
+ restart : always
29
+ ports :
30
+ - " 3406:3306"
31
+ environment :
32
+ MYSQL_ROOT_PASSWORD : admin
33
+ MYSQL_USER : merico
34
+ MYSQL_PASSWORD : merico
35
+
36
+ jenkins :
37
+ image : jenkins/jenkins:2.387
38
+ privileged : true
39
+ user : root
40
+ ports :
41
+ - " 8099:8080" # the UI
42
+ - " 50000:50000"
43
+ container_name : jenkins
44
+ volumes :
45
+ - ./.docker/jenkins:/var/jenkins_home
46
+
47
+ # see https://developer.atlassian.com/platform/marketplace/timebomb-licenses-for-testing-server-apps/ for temporary test licenses
48
+ jira :
49
+ image : atlassian/jira-software:9.5.0
50
+ volumes :
51
+ - ./.docker/jira:/var/atlassian/jira
52
+ # download this jar from https://dev.mysql.com/downloads/connector/j/8.0.html if needed
53
+ - ./.docker/mysql-connector-j-8.0.32.jar:/opt/atlassian/jira/lib/mysql-connector-j-8.0.32.jar
54
+ ports :
55
+ - ' 8090:8080' # the UI
56
+ environment :
57
+ JIRA_DATABASE_URL : ' mysql://merico:merico@mysql-ds:3306/jira?autoReconnect=true&useSSL=false'
58
+ JIRA_DB_PASSWORD : merico
59
+ JVM_RESERVED_CODE_CACHE_SIZE : 1024m
60
+ SETENV_JVM_MINIMUM_MEMORY : 2048m
61
+ SETENV_JVM_MAXIMUM_MEMORY : 4096m
62
+ # JIRA_PROXY_NAME:
63
+ # JIRA_PROXY_PORT:
64
+ # JIRA_PROXY_SCHEME:
65
+ logging :
66
+ # limit logs retained on host to 25MB
67
+ driver : " json-file"
68
+ options :
69
+ max-size : " 500k"
70
+ max-file : " 50"
71
+ depends_on :
72
+ - mysql-ds
73
+
74
+ # see https://developer.atlassian.com/platform/marketplace/timebomb-licenses-for-testing-server-apps/ for temporary test licenses
75
+ bitbucket :
76
+ image : atlassian/bitbucket-server:8.7.0
77
+ ports :
78
+ - " 7990:7990" # the UI
79
+ - " 7999:7999"
80
+ environment :
81
+ # SERVER_PROXY_NAME:
82
+ # SERVER_PROXY_PORT:
83
+ SERVER_SCHEME : http
84
+ SERVER_SECURE : false
85
+ JVM_MINIMUM_MEMORY : 512m
86
+ JVM_MAXIMUM_MEMORY : 1024m
87
+ # JVM_SUPPORTED_RECOMMENDED_ARGS: NONE
88
+ SEARCH_ENABLED : true
89
+ APPLICATION_MODE : default
90
+ JDBC_DRIVER : com.mysql.cj.jdbc.Driver
91
+ JDBC_URL : ' jdbc:mysql://merico:merico@mysql-ds:3306/bitbucket?allowPublicKeyRetrieval=true&autoReconnect=true&useSSL=false'
92
+ JDBC_USER : merico
93
+ JDBC_PASSWORD : merico
94
+ volumes :
95
+ # download this jar from https://dev.mysql.com/downloads/connector/j/8.0.html if needed
96
+ - ./.docker/mysql-connector-j-8.0.32.jar:/var/atlassian/application-data/bitbucket/lib/mysql-connector-j-8.0.32.jar
97
+ - ./.docker/bitbucket/lib/native:/var/atlassian/application-data/bitbucket/lib/native
98
+ - ./.docker/bitbucket:/var/atlassian/application-data/bitbucket
99
+ depends_on :
100
+ - mysql-ds
0 commit comments