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

Add Docker Compose deployment guide on README #5

Closed
wants to merge 5 commits into from
Closed
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
6 changes: 5 additions & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ jobs:
- name: Check out the code
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/[email protected]

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v3.2.0

- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand All @@ -31,6 +34,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/valospectra/overlay:latest
Expand Down
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,37 @@ It is comprised of three parts:

Further updates for new features, as well as a detailed setup guide and an easy to host docker container are in the pipeline!

# Docker Compose tutorial:

First, create a seperate folder in your working directory and create a folder ``` config``` inside it:
```
mkdir -p spectra-frontend/config
cd spectra-frontend
```

Create a file named ```docker-compose.yml``` as follow:
```
---
services:
valo-spectra-frontend:
image: "ghcr.io/valospectra/overlay"
ports:
- "3000:80"
volumes:
- ./config:/usr/share/nginx/html/assets/config/
```
You can change ```3000``` to a different port which you want the frontend accessible outside the container to.

Inside ``` config``` folder, create a file named ```config.json``` with the following content:
```
{
"serverEndpoint": "https://localhost:5200"
}
```
Replace ``` https://localhost:5200``` with your Spectra Server address and outcoming port (default is 5200).

After that you can start the frontend by running ```docker compose up -d``` and the frontend are accessible at port ```3000``` by default.

# DISCLAIMER

Spectra-Client isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing Riot Games properties. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc.