Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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