Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Notifications for New Matches #1610

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ Notes
* Discord: https://discord.gg/opendota
* Strongly recommended for active developers! We move fast and it's helpful to be up to speed with everything that's happening.

HTTPS
---
Service Worker development requires HTTPS, and if you're developing on a remote host, this may be a challenge
(otherwise, localhost is a trusted origin). `https-docker-compose.yml` sets up HTTPS proxy via Nginx and LetsEncrypt.
You must set `VIRTUAL_HOST` `LETSENCRYPT_HOST` (which should be the same value) and `LETSENCRYPT_EMAIL`.

Resources
----
* New to React/Redux? Read these articles on React and watch video tutorials by Redux creator Dan Abramov.
Expand Down
49 changes: 49 additions & 0 deletions https-docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# You don't usually need to edit this file.
# If it does not fit your personal use case, docker-compose.override.yml is a preferred way to go.

version: '2'
services:
ui:
build:
context: .
image: odota/web
container_name: odota-web
expose:
- "8080"
ports:
- "8080:8080"
volumes:
- .:/usr/src
environment:
- PORT=8080
- VIRTUAL_PORT=8080
- VIRTUAL_HOST
- LETSENCRYPT_HOST
- LETSENCRYPT_EMAIL
networks:
- odota
nginx-proxy:
image: jwilder/nginx-proxy
container_name: odota-nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /etc/nginx/vhost.d
- /usr/share/nginx/html
- /etc/nginx/certs
networks:
- odota
letsencrypt-nginx:
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes_from:
- "nginx-proxy"
networks:
- odota
container_name: odota-nginx-letsencrypt
networks:
odota:
driver: bridge
Loading