Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable local frontend development with a Caddy proxy in Docker
- Loading branch information
1 parent
761cb17
commit 9fa2e2b
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
:8800 | ||
|
||
@room { | ||
path_regexp room ^/[0-9]+$ | ||
} | ||
|
||
@root { | ||
path root / | ||
} | ||
|
||
route @room { | ||
rewrite * /room.html | ||
file_server { | ||
root /srv | ||
} | ||
} | ||
|
||
route @root { | ||
rewrite * /index.html | ||
file_server { | ||
root /srv | ||
} | ||
} | ||
|
||
reverse_proxy meetingmood:8844 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: "3.7" | ||
|
||
services: | ||
meetingmood: | ||
build: . | ||
caddy: | ||
image: caddy:latest | ||
restart: unless-stopped | ||
ports: | ||
- "8800:8800" | ||
volumes: | ||
- $PWD/Caddyfile:/etc/caddy/Caddyfile | ||
- $PWD:/srv | ||
depends_on: | ||
- meetingmood |