forked from haxqer/bitbucket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 1.04 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
version: '3.4'
services:
bitbucket:
image: haxqer/bitbucket:7.21.16
container_name: bitbucket-srv
environment:
- TZ=Asia/Shanghai
# - JVM_MINIMUM_MEMORY=1g
# - JVM_MAXIMUM_MEMORY=12g
# - JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=1g -XX:ReservedCodeCacheSize=8g'
depends_on:
- mysql
ports:
- "7990:7990"
- "7999:7999"
volumes:
- home_data:/var/bitbucket
restart: always
networks:
- network-bridge
mysql:
image: mysql:8
container_name: mysql-bitbucket
environment:
- TZ=Asia/Shanghai
- MYSQL_DATABASE=bitbucket
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_USER=bitbucket
- MYSQL_PASSWORD=123123
command: ['mysqld', '--character-set-server=utf8', '--collation-server=utf8_bin']
# ports:
# - "13306:3306"
volumes:
- mysql_data:/var/lib/mysql
restart: always
networks:
- network-bridge
networks:
network-bridge:
driver: bridge
volumes:
home_data:
external: false
mysql_data:
external: false