Skip to content

Instantly share code, notes, and snippets.

@blofeldthefish
Forked from nikhuber/bitbucket-compose.yml
Created March 13, 2019 21:08
Show Gist options
  • Save blofeldthefish/b64beb9a482a3de2d2adfdbed5d4a997 to your computer and use it in GitHub Desktop.
Save blofeldthefish/b64beb9a482a3de2d2adfdbed5d4a997 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment