Merge d81f7a14d7fca00dcbe5607ee142ef8869cb8030 into 4cac6b6ce8fbdcaf6ef640b8c0d80a8afe2c9a37

This commit is contained in:
TaurionBruni 2024-06-23 15:25:47 -04:00 committed by GitHub
commit ec787ddb01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

@ -11,10 +11,15 @@ There is a sample docker-compose file for setting up a docker container to setup
- npm: [how to install](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
## Installation:
```
docker build . -t rogueserver
docker compose -f docker.compose.Example.yml up -d
```
The docker compose file should automatically implement a container with mariadb with an empty database and the default user and password combo of pokerogue:pokerogue
### src/utils.ts:224-225 (in pokerogue)
Replace both URLs (one on each line) with the local API server address from rogueserver.go (0.0.0.0:8001) (or whatever port you picked)
### .env and .env.development (in pokerogue)
Replace the URL on VITE_SERVER_URL in both files to match your local ip and port of rogueserver if nessessary
# If you are on Windows

View File

@ -1,7 +1,7 @@
services:
server:
command: --debug --dbaddr db --dbuser pokerogue --dbpass pokerogue --dbname pokeroguedb
image: ghcr.io/pagefaultgames/rogueserver:master
image: rogueserver:latest
restart: unless-stopped
depends_on:
db: