Skip to content

Instantly share code, notes, and snippets.

@nikhuber
Last active November 27, 2023 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save nikhuber/02fd324f93bc3108cd2e398ccc415c55 to your computer and use it in GitHub Desktop.
Save nikhuber/02fd324f93bc3108cd2e398ccc415c55 to your computer and use it in GitHub Desktop.
version: '3'
services:
bitbucket:
image: "atlassian/bitbucket-server:5.0"
container_name: bitbucket
restart: always
ports:
- "7990:7990"
- "7999:7999"
environment:
- BITBUCKET_HOME=/var/atlassian/application-data/bitbucket/
volumes:
- bitbucketData:/var/atlassian/application-data/bitbucket
db:
image: postgres:9.6
container_name: bitbucket-database
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: <your_pw>
POSTGRES_USER: <your_user>
POSTGRES_DB: postgres
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- bitbucketDbVolume:/var/lib/postgresql/data
volumes:
bitbucketData:
external:
name: bitbucketData
bitbucketDbVolume:
external:
name: bitbucketDbVolume
@aleon1220
Copy link

hi i am here because of your wonderful post at https://medium.com/@niko.huber/dockerizing-bitbucket-server-d07404eefc51
Thank you so much for writing this. It really helps.
Bless you

@nikhuber
Copy link
Author

Thank you, @aleon1220.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment