Skip to content

Commit

Permalink
Add caddy file for default local hosting on 8080
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrady42 committed May 2, 2020
1 parent fbe2480 commit e8d0631
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ services:
# context: .
image: pionwebrtc/ion-web:0.2.0
volumes:
- "./docker/Caddyfile:/etc/Caddyfile"
# Uncomment for production
# - "./docker/Caddyfile:/etc/caddy/Caddyfile"
# Dev caddyfile
- "./docker/local.Caddyfile:/etc/caddy/Caddyfile"
- "caddy:/root/.caddy/"
ports:
- 80:80
- 443:443
# Prod ports
# - 80:80
# - 443:443
- 8080:8080
depends_on:
- biz
environment:
Expand Down
8 changes: 8 additions & 0 deletions docker/local.Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
http://localhost:8080 {
root * /app/demo/dist
file_server

reverse_proxy /ws biz:8443 {
header_up Sec-WebSocket-Protocol {>Sec-WebSocket-Protocol}
}
}

0 comments on commit e8d0631

Please sign in to comment.