Skip to content

Instantly share code, notes, and snippets.

@jahands
Created August 8, 2016 18:59
Show Gist options
  • Save jahands/93784a14c3b7edc1449428e4838e1d7b to your computer and use it in GitHub Desktop.
Save jahands/93784a14c3b7edc1449428e4838e1d7b to your computer and use it in GitHub Desktop.
Using Caddy and Docker Compose for easy deployment
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}
}
}
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:
@mholt
Copy link

mholt commented Aug 8, 2016

Nice, but try replacing all the proxy_header lines (which is now deprecated) with the transparent preset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment