Skip to content

Commit

Permalink
added custom nginx container to handle reverse proxying and https req…
Browse files Browse the repository at this point in the history
…uests (#47)

* domain setup step 1 test 5

* domain setup step 2(backend) test 1

* domain setup step2(backend) test2

* removed .ssl-data from .dockerignore

* added custom nginx container to handle reverse proxying and https requests
  • Loading branch information
NdibeRaymond authored Dec 27, 2020
1 parent 3ec913f commit 94edea1
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions zubhub_frontend/zubhub/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,14 @@ services:
- "8080:80"

reverse-proxy:
image: valian/docker-nginx-auto-ssl:1.0.0
image: nginx:stable-alpine
container_name: reverse-proxy
restart: on-failure
ports:
- 80:80
- 443:443
volumes:
- ./.ssl-data:/etc/resty-auto-ssl
environment:
ALLOWED_DOMAINS: "(zubhub|www.zubhub).unstructured.studio"
SITES: "zubhub.unstructured.studio=zubhub_frontend:80;www.zubhub.unstructured.studio=zubhub_frontend:80"
FORCE_HTTPS: "true"
- ./.zero-ssl:/etc/ssl
- ./reverse-proxy:/etc/nginx
depends_on:
- zubhub_frontend
volumes:
.ssl-data:

0 comments on commit 94edea1

Please sign in to comment.