Created
March 26, 2019 08:24
-
-
Save polaroidkidd/770bad86100b84651c0149a4170cc1e6 to your computer and use it in GitHub Desktop.
Bamboo & Bitbucket in Docker-Compose
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.7' | |
services: | |
nginx: | |
image: nginx:1.15.9-alpine | |
container_name: dle-nginx | |
# restart: unless-stopped | |
volumes: | |
- ./data/nginx:/etc/nginx/conf.d | |
- ./data/certbot/conf:/etc/letsencrypt | |
- ./data/certbot/www:/var/www/certbot | |
ports: | |
- "80:80" | |
- "443:443" | |
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'" | |
certbot: | |
image: certbot/certbot | |
container_name: dle-certbot | |
# restart: unless-stopped | |
volumes: | |
- ./data/certbot/conf:/etc/letsencrypt | |
- ./data/certbot/www:/var/www/certbot | |
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'" | |
site: | |
image: dle-site:0.0.3 | |
# restart: unless-stopped | |
container_name: dle-site | |
expose: | |
- 80 | |
cicd: | |
image: dle-cicd:0.0.2 | |
# restart: unless-stopped | |
container_name: dle-cicd | |
expose: | |
- 80 | |
bitbucket: | |
container_name: dle-bitbucket | |
image: atlassian/bitbucket-server | |
# restart: unless-stopped | |
volumes: | |
- bitbucket-data:/var/atlassian/application-data/bitbucket | |
expose: | |
- 7990 | |
- 7999 | |
environment: | |
- SERVER_SECURE=true | |
- SERVER_SCHEME=https | |
- SERVER_PROXY_PORT=443 | |
- SERVER_PROXY_NAME=code.dle.dev | |
- BITBUCKET_HOME=/var/atlassian/application-data/bitbucket/ | |
bitbucket-db: | |
image: postgres:9.6 | |
container_name: dle-bitbucket-db | |
# restart: unless-stopped | |
ports: | |
- "5001:5432" | |
volumes: | |
- bitbucket-data-db:/var/lib/postgresql/data | |
environment: | |
POSTGRES_PASSWORD: password | |
POSTGRES_USER: user | |
POSTGRES_DB: bitbucket | |
PGDATA: /var/lib/postgresql/data/pgdata | |
bamboo: | |
image: atlassian/bamboo-server | |
container_name: dle-bamboo | |
# restart: unless-stopped | |
expose: | |
- 54663 | |
- 8085 | |
volumes: | |
- bamboo-data:/var/atlassian/application-data/bamboo | |
db-bamboo: | |
image: postgres:9.6 | |
container_name: dle-bamboo-db | |
# restart: unless-stopped | |
ports: | |
- "5000:5432" | |
volumes: | |
- bamboo-data-db:/var/lib/postgresql/data | |
environment: | |
POSTGRES_PASSWORD: password | |
POSTGRES_USER: user | |
POSTGRES_DB: bamboo | |
PGDATA: /var/lib/postgresql/data/pgdata | |
volumes: | |
# jira-data: | |
bitbucket-data: | |
bitbucket-data-db: | |
bamboo-data: | |
bamboo-data-db: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment