forked from EXP-Tools/jira-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (54 loc) · 1.35 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
version: '2.1'
services:
mysql:
image: mysql:5.7
container_name: jira_db
environment:
- TZ=Asia/Shanghai
- MYSQL_LOG_CONSOLE=true
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=jira
- MYSQL_USER=jira
- MYSQL_PASSWORD=123456
command: ['mysqld', '--character-set-server=utf8', '--collation-server=utf8_bin', '--lower_case_table_names=1']
volumes:
- ./mysql/data:/var/lib/mysql
ports:
- 3306:3306
networks:
vpn:
ipv4_address: 172.168.88.2
# healthcheck:
# test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
# timeout: 5s
# retries: 10
restart: always
jira:
container_name: jira_srv
build:
context: .
dockerfile: Dockerfile
environment:
- TZ=Asia/Shanghai
# - JVM_MINIMUM_MEMORY=1g
# - JVM_MAXIMUM_MEMORY=12g
# - JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=1g -XX:ReservedCodeCacheSize=8g'
volumes:
- ./jira/conf/server.xml:/opt/atlassian/jira/conf/server.xml
- ./jira/atlassian:/var/atlassian/jira
ports:
- "8080:8080"
networks:
vpn:
ipv4_address: 172.168.88.3
depends_on:
- mysql
restart: always
networks:
vpn:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.168.88.0/24
gateway: 172.168.88.1