-
Notifications
You must be signed in to change notification settings - Fork 28
/
bitbucket-compose.yml
executable file
·72 lines (65 loc) · 2.01 KB
/
bitbucket-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
#
# __ _ __ __ __ __ ____ _____
# / / (_) /_/ / __ ______/ /_____ / /_ / __/__ / _/ /__ _____ ________
# / _ \/ / __/ _ \/ // / __/ '_/ -_) __/ _\ \/ _ \/ _/ __/ |/|/ / _ `/ __/ -_)
#/_.__/_/\__/_.__/\_,_/\__/_/\_\\__/\__/ /___/\___/_/ \__/|__,__/\_,_/_/ \__/
#
# Docker Compose for Run bitbucket
# Test for bitbucket Server 7.x
# Need "my-net" Network for Run this File
# docker network create --driver bridge --subnet=150.50.50.0/24 my-net
version: '3.4'
services:
bitbucket:
image: "atlassian/bitbucket-server:latest"
container_name: bitbucket
hostname: bitbucket
restart: always
environment:
BITBUCKET_HOME: /var/atlassian/application-data/bitbucket/
JAVA_OPTS: '-javaagent:/atlassian-agent.jar'
JDBC_DRIVER: org.postgresql.Driver
JDBC_URL: 'jdbc:postgresql://db:5432/bitbucket'
JDBC_USER: bitbucket
JDBC_PASSWORD: 'X&/LmRJDsw3wJf<30j39'
#SERVER_SCHEME: 'https'
#SERVER_SECURE: 'true'
#SERVER_PROXY_PORT: '443'
#SERVER_PROXY_NAME: 'bitbucket.mysite.com'
JVM_MINIMUM_MEMORY: 512m
JVM_MAXIMUM_MEMORY: 2048m
volumes:
- bitbucket-Data:/var/atlassian/application-data/bitbucket
- ./agent/atlassian-agent.bak:/atlassian-agent.jar:ro
networks:
my-net:
aliases:
- bit
ports:
- 7990:7990
- 7999:7999
db:
image: postgres:9.6
container_name: bitbucket-database
hostname: bitbucket-database
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: 'X&/LmRJDsw3wJf<30j39'
POSTGRES_USER: bitbucket
POSTGRES_DB: bitbucket
volumes:
- bitbucketDbVolume:/var/lib/postgresql/data
networks:
my-net:
aliases:
- bit-db
volumes:
bitbucket-Data:
name: bitbucket-Data
bitbucketDbVolume:
name: bitbucketDbVolume
networks:
my-net:
external: true