{"id":27375073,"url":"https://github.com/katharostech/docker_bitbucket","last_synced_at":"2025-07-26T17:33:25.332Z","repository":{"id":66216742,"uuid":"203452790","full_name":"katharostech/docker_bitbucket","owner":"katharostech","description":"Docker image for Atlassian Bitbucket","archived":false,"fork":false,"pushed_at":"2019-08-20T20:53:26.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T09:04:24.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/katharostech.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-08-20T20:52:42.000Z","updated_at":"2019-08-20T20:53:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"72fa0e50-2834-4d6b-91b3-89d9f87b2d7e","html_url":"https://github.com/katharostech/docker_bitbucket","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"ac618b829cf9dd09b26e9171ec1b3fc953e50af4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katharostech%2Fdocker_bitbucket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katharostech%2Fdocker_bitbucket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katharostech%2Fdocker_bitbucket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katharostech%2Fdocker_bitbucket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/katharostech","download_url":"https://codeload.github.com/katharostech/docker_bitbucket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248677335,"owners_count":21144083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-13T12:14:20.790Z","updated_at":"2025-04-13T12:14:21.502Z","avatar_url":"https://github.com/katharostech.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build version specific image\nThis container image is designed so that the version of Bitbucket that you wish to build is pulled from Atlassian at build time. In order to build a version specific image, you must pass in a `--build-arg` parameter with the associated version you wish to build. Use the example below and substitute the `BITBUCKET_VERSION` with the version of your choice.\n\n```\ndocker build --build-arg BITBUCKET_VERSION=5.1.2 -t dhaws/bitbucket:5.1.2_JFJ-2987 .\n```\n\n# Run the container\n## Command line\nYou can run the container from the command line as follows\n\n    docker run \\\n    -v {some path on Docker host}:/var/atlassian/application-data/bitbucket:z \\\n    -p 8080:7990 \\\n    -p 8081:7999 \\\n    -it kadimasolutions/bitbucket:5.1.2\n\n## Sandbox\nThe codebase for this image provides a sandbox directory which leverages docker-compose for quickly standing up a sandbox environment. Simply ensure you are in the \"sandbox\" directory and execute a docker-compose up command.\n\n    cd sandbox\n    docker-compose up -d\n    docker-compse logs -f       # tail the logs as the sandbox environment starts up\n    \n    # When you're done with the sandbox, simply take it down\n    docker-compose down          # Use -v if you provided any named volumes you want to remove\n\nSome standard directives are included in the \"docker-compose.yml\" file which can be modified to fit the needs of your particular sandbox requirements.\n\n### The .env file\nFor any environment variables specified in the format of `${VARIABLE_NAME}` in the docker-compose.yml file, the `.env` file will be used for variable expansion. A `.env` file may look something like this:\n\n    BITBUCKET_PORT=8080\n    BITBUCKET_SSH_PORT=8081\n    BITBUCKET_LOCAL_HOME=/mnt/bitbucket_home\n    DB_NAME=bitbucketdb\n    DB_USER=root\n    DB_PASSWORD=welcome1\n\nWith the above `.env` file, any instance of `${BITBUCKET_PORT}` in the `docker-compose.yml` file, would be expanded to `8080`.\n\n### Image\nThe image tag can be adjusted based on the version of Bitbucket you want to run\n\n    image: kadimasolutions/bitbucket:5.1.2\n\n### JVM settings\nThe JVM environment variables specify how much memory to allocate to Bitbucket itself as well as the bundled Elasticsearch instance\n\n    environment:\n          JVM_MIN_MEM: 256m         {default: 512m}\n          JVM_MAX_MEM: 512m            {default: 1g}\n          ES_JVM_MIN_MEM: 256m        {default: 256m}\n          ES_JVM_MAX_MEM: 512m        {default: 1g}\n\n### Elasticsearch\nTurn off Elasticsearch...which is on by default\n\n    environment:\n            ...\n            ELASTICSEARCH_ENABLED: false\n\n### Reverse Proxy (_Bitbucket Server 5.0 +_)\nReverse proxy \n\n    environment:\n        ...\n        SERVER_SECURE: true\n        SERVER_SCHEME: https\n        SERVER_PROXY_PORT: 443\n        SERVER_PROXY_NAME: bitbucket.kadima.solutions\n    \n### Port mapping\nMap the ports according to what is defined in the `.env` file.\n    \n    ports:\n     - ${BITBUCKET_PORT}:7990            # 7990 is mapped as the Bitbucket HTTP port in the container\n     - ${BITBUCKET_SSH_PORT}:7999        # 7999 is mapped as the Bitbucket SSH port in the container\n\n### Volume mapping\nThe only required volume for this container is the Bitbucket Home which is where all persisted File System information is kept. The path on the left hand side of the colon can be a path volume or a named volume on the Docker host. \n\nThe path on the right hand side of the colon, is the path inside the container where the Bitbucket Home is expected to be. This path must not be altered if you want your external volume to be used as the container's Bitbucket Home.\n\n    volumes:\n     - ${BITBUCKET_LOCAL_HOME}:/var/atlassian/application-data/bitbucket:z\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatharostech%2Fdocker_bitbucket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatharostech%2Fdocker_bitbucket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatharostech%2Fdocker_bitbucket/lists"}