Skip to content

Commit e2a7ff2

Browse files
committed
Dashboard docker dynamic routing
1 parent ba5c341 commit e2a7ff2

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

.github/workflows/dashboard-release-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
with:
5959
context: ./dashboard
6060
platforms: linux/amd64,linux/arm64
61-
file: ./dashboard/Dockerfile
61+
file: ./dashboard/docker/Dockerfile
6262
push: true
6363
tags: |
6464
${{ steps.string_tag.outputs.lowercase }}:latest
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ FROM nginx
1515
WORKDIR /usr/share/nginx/html
1616

1717
COPY --from=build /app/out/ ./
18+
# Replace the default server configuration, but leave the overall nginx
19+
# configuration
20+
COPY ./docker/server.nginx.conf /etc/nginx/conf.d/default.conf

dashboard/docker/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Self Hosting with Docker
2+
Example:
3+
```shell
4+
docker run -d -p 3001:80 --name lodestone-dashboard ghcr.io/lodestone-team/lodestone_dashboard
5+
```
6+
And then the dashboard will be available at http://localhost:3001

dashboard/docker/server.nginx.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
5+
root /usr/share/nginx/html;
6+
7+
location / {
8+
try_files $uri $uri/ /index.html;
9+
}
10+
}

0 commit comments

Comments
 (0)