Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard docker path routing #423

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
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;
}
}