Skip to content

Instantly share code, notes, and snippets.

@mtsmfm
Last active December 22, 2016 03:04
Show Gist options
  • Select an option

  • Save mtsmfm/28367bcea438f8f70fdb016e904ad294 to your computer and use it in GitHub Desktop.

Select an option

Save mtsmfm/28367bcea438f8f70fdb016e904ad294 to your computer and use it in GitHub Desktop.
version: '2'
services:
web:
build: .
nginx:
image: nginx
ports:
- 8080:80
command: |
bash -c "
cat > /etc/nginx/conf.d/default.conf <<'EOF' && nginx -g 'daemon off;'
server {
location / {
proxy_set_header X-Forwarded-Proto https;
proxy_pass http://web;
}
}
EOF
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment