Created
August 8, 2016 18:59
-
-
Save jahands/93784a14c3b7edc1449428e4838e1d7b to your computer and use it in GitHub Desktop.
Using Caddy and Docker Compose for easy deployment
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
gitlab:80 { | |
proxy / gitlabsvc:80 { | |
proxy_header Host {host} | |
proxy_header X-Forwarded-Proto {scheme} | |
proxy_header X-Real-IP {remote} | |
} | |
} | |
wiki:80 { | |
proxy / wikisvc:8090 { | |
proxy_header Host {host} | |
proxy_header X-Forwarded-Proto {scheme} | |
proxy_header X-Real-IP {remote} | |
} | |
} | |
jira:80 { | |
proxy / jirasvc:8080 { | |
proxy_header Host {host} | |
proxy_header X-Forwarded-Proto {scheme} | |
proxy_header X-Real-IP {remote} | |
} | |
} |
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: '2' | |
services: | |
gitlabsvc: | |
image: gitlab/gitlab-ce | |
networks: | |
- gitlab | |
- front | |
ports: | |
- "22:22" | |
volumes: | |
- /var/gitlab/config:/etc/gitlab | |
- /var/gitlab/logs:/var/log/gitlab | |
- /var/gitlab/data:/var/opt/gitlab | |
db: | |
image: sameersbn/postgresql | |
networks: | |
- atlassian | |
volumes: | |
- /var/atlassian/postgres:/var/lib/postgresql | |
environment: | |
- DB_USER=atlassian | |
- DB_PASS=atlassian | |
- DB_NAME=jira,confluence | |
wikisvc: | |
image: cptactionhank/atlassian-confluence | |
networks: | |
- atlassian | |
volumes: | |
- /var/atlassian/confluence:/var/atlassian/confluence | |
jirasvc: | |
image: cptactionhank/atlassian-jira-service-desk | |
networks: | |
- atlassian | |
volumes: | |
- /var/atlassian/jira:/var/atlassian/jira | |
caddy: | |
build: proxy/ | |
networks: | |
- atlassian | |
- gitlab | |
- front | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- /var/proxy/data/caddy:/root/.caddy | |
- /var/proxy/data/html:/var/www/html | |
networks: | |
front: | |
atlassian: | |
gitlab: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice, but try replacing all the
proxy_header
lines (which is now deprecated) with thetransparent
preset.