Skip to content

Instantly share code, notes, and snippets.

@nikhuber
Last active November 27, 2023 10:01
Show Gist options
  • 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
@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