Skip to content

Commit

Permalink
Dashboard docker path routing
Browse files Browse the repository at this point in the history
  • Loading branch information
sentanos committed Oct 15, 2024
1 parent f030364 commit 9e2f8fb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dashboard-release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
with:
context: ./dashboard
platforms: linux/amd64,linux/arm64
file: ./dashboard/Dockerfile
file: ./dashboard/docker/Dockerfile
push: true
tags: |
${{ steps.string_tag.outputs.lowercase }}:latest
Expand Down
3 changes: 3 additions & 0 deletions dashboard/Dockerfile → dashboard/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ FROM nginx
WORKDIR /usr/share/nginx/html

COPY --from=build /app/out/ ./
# Replace the default server configuration, but leave the overall nginx
# configuration
COPY ./docker/server.nginx.conf /etc/nginx/conf.d/default.conf
6 changes: 6 additions & 0 deletions dashboard/docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Self Hosting with Docker
Example:
```shell
docker run -d -p 3001:80 --name lodestone-dashboard ghcr.io/lodestone-team/lodestone_dashboard
```
And then the dashboard will be available at http://localhost:3001
10 changes: 10 additions & 0 deletions dashboard/docker/server.nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server {
listen 80;
server_name localhost;

root /usr/share/nginx/html;

location / {
try_files $uri $uri/ /index.html;
}
}

0 comments on commit 9e2f8fb

Please sign in to comment.