forked from apache/incubator-devlake
-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.datasources.yml
100 lines (94 loc) · 3.71 KB
/
docker-compose.datasources.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
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This compose file is provided with the purposes of locally testing datasources that can be Dockerized.
version: "3"
services:
mysql-ds:
image: mysql:8
volumes:
- ./.docker/mysql-ds:/var/lib/mysql
# 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
- ./backend/scripts/docker/mysql/init-ds.sql:/docker-entrypoint-initdb.d/init-ds.sql:ro
restart: always
ports:
- "3406:3306"
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_USER: merico
MYSQL_PASSWORD: merico
jenkins:
image: jenkins/jenkins:2.387
privileged: true
user: root
ports:
- "8099:8080" # the UI
- "50000:50000"
container_name: jenkins
volumes:
- ./.docker/jenkins:/var/jenkins_home
# see https://developer.atlassian.com/platform/marketplace/timebomb-licenses-for-testing-server-apps/ for temporary test licenses
jira:
image: atlassian/jira-software:9.5.0
volumes:
- ./.docker/jira:/var/atlassian/jira
#download this jar from https://dev.mysql.com/downloads/connector/j/8.0.html if needed
- ./.docker/mysql-connector-j-8.0.32.jar:/opt/atlassian/jira/lib/mysql-connector-j-8.0.32.jar
ports:
- '8090:8080' # the UI
environment:
JIRA_DATABASE_URL: 'mysql://merico:merico@mysql-ds:3306/jira?autoReconnect=true&useSSL=false'
JIRA_DB_PASSWORD: merico
JVM_RESERVED_CODE_CACHE_SIZE: 1024m
SETENV_JVM_MINIMUM_MEMORY: 2048m
SETENV_JVM_MAXIMUM_MEMORY: 4096m
# JIRA_PROXY_NAME:
# JIRA_PROXY_PORT:
# JIRA_PROXY_SCHEME:
logging:
# limit logs retained on host to 25MB
driver: "json-file"
options:
max-size: "500k"
max-file: "50"
depends_on:
- mysql-ds
# see https://developer.atlassian.com/platform/marketplace/timebomb-licenses-for-testing-server-apps/ for temporary test licenses
bitbucket:
image: atlassian/bitbucket-server:8.7.0
ports:
- "7990:7990" # the UI
- "7999:7999"
environment:
# SERVER_PROXY_NAME:
# SERVER_PROXY_PORT:
SERVER_SCHEME: http
SERVER_SECURE: false
JVM_MINIMUM_MEMORY: 512m
JVM_MAXIMUM_MEMORY: 1024m
# JVM_SUPPORTED_RECOMMENDED_ARGS: NONE
SEARCH_ENABLED: true
APPLICATION_MODE: default
JDBC_DRIVER: com.mysql.cj.jdbc.Driver
JDBC_URL: 'jdbc:mysql://merico:merico@mysql-ds:3306/bitbucket?allowPublicKeyRetrieval=true&autoReconnect=true&useSSL=false'
JDBC_USER: merico
JDBC_PASSWORD: merico
volumes:
#download this jar from https://dev.mysql.com/downloads/connector/j/8.0.html if needed
- ./.docker/mysql-connector-j-8.0.32.jar:/var/atlassian/application-data/bitbucket/lib/mysql-connector-j-8.0.32.jar
- ./.docker/bitbucket/lib/native:/var/atlassian/application-data/bitbucket/lib/native
- ./.docker/bitbucket:/var/atlassian/application-data/bitbucket
depends_on:
- mysql-ds