Last active
February 20, 2025 22:55
-
-
Save qzm/f87e41d331e88e4ac93ab68d30327802 to your computer and use it in GitHub Desktop.
Atlassian docker-compose (JIRA,Confluence,Bitbucket) with nginx and letsencrypt
This file contains hidden or 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: '2' | |
services: | |
watchtower: | |
image: containrrr/watchtower | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /root/.docker/config.json:/config.json | |
command: nginx-proxy nginx-proxy-le | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
container_name: nginx-proxy | |
restart: always | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- conf:/etc/nginx/conf.d | |
- vhost:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
- dhparam:/etc/nginx/dhparam | |
- certs:/etc/nginx/certs:ro | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
network_mode: bridge | |
letsencrypt: | |
image: jrcs/letsencrypt-nginx-proxy-companion | |
container_name: nginx-proxy-le | |
restart: always | |
environment: | |
- [email protected] | |
volumes_from: | |
- nginx-proxy | |
volumes: | |
- certs:/etc/nginx/certs:rw | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
network_mode: bridge | |
jira: | |
image: atlassian/jira-software | |
container_name: jira | |
restart: always | |
environment: | |
- VIRTUAL_HOST=jira.example.com | |
- VIRTUAL_PORT=8080 | |
- ATL_PROXY_NAME=jira.example.com | |
- ATL_PROXY_PORT=443 | |
- ATL_TOMCAT_SCHEME=https | |
- LETSENCRYPT_HOST=jira.example.com | |
- [email protected] | |
volumes: | |
- jiraVolume:/var/atlassian/application-data/jira | |
- jiraInstallVolume:/opt/atlassian/ | |
network_mode: bridge | |
confluence: | |
image: atlassian/confluence-server | |
container_name: confluence | |
restart: always | |
environment: | |
- VIRTUAL_HOST=confluence.example.com | |
- VIRTUAL_PORT=8090 | |
- ATL_PROXY_NAME=confluence.example.com | |
- ATL_PROXY_PORT=443 | |
- ATL_TOMCAT_SCHEME=https | |
- LETSENCRYPT_HOST=confluence.example.com | |
- [email protected] | |
volumes: | |
- confluenceVolume:/var/atlassian/application-data/confluence | |
- confluenceInstallVolume:/opt/atlassian/ | |
network_mode: bridge | |
bitbucket: | |
image: atlassian/bitbucket-server | |
container_name: bitbucket | |
restart: always | |
environment: | |
- VIRTUAL_HOST=bitbucket.example.com | |
- VIRTUAL_PORT=7990 | |
- SERVER_PROXY_NAME=bitbucket.example.com | |
- SERVER_PROXY_PORT=443 | |
- SERVER_SCHEME=https | |
- LETSENCRYPT_HOST=bitbucket.example.com | |
- [email protected] | |
volumes: | |
- bitbucketVolume:/var/atlassian/application-data/bitbucket | |
- bitbucketInstallVolume:/opt/atlassian/ | |
network_mode: bridge | |
volumes: | |
conf: | |
vhost: | |
html: | |
dhparam: | |
certs: | |
jiraVolume: | |
jiraInstallVolume: | |
confluenceVolume: | |
confluenceInstallVolume: | |
bitbucketVolume: | |
bitbucketInstallVolume: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment