Last active
November 27, 2023 10:01
-
-
Save nikhuber/02fd324f93bc3108cd2e398ccc415c55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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