This commit is contained in:
skidoodle 2024-12-31 02:19:29 +01:00
parent 51da89ff19
commit 96d7d5d277
Signed by: albert
GPG key ID: A06E3070D7D55BF2
4 changed files with 17 additions and 17 deletions

View file

@ -1,7 +1,7 @@
services: services:
trackncore: ncore-stats:
build: . build: .
container_name: trackncore container_name: ncore-stats
restart: unless-stopped restart: unless-stopped
ports: ports:
- "3000:3000" - "3000:3000"

View file

@ -1,7 +1,7 @@
services: services:
trackncore: ncore-stats:
image: ghcr.io/skidoodle/trackncore:main image: ghcr.io/skidoodle/ncore-stats:main
container_name: trackncore container_name: ncore-stats
restart: unless-stopped restart: unless-stopped
ports: ports:
- "3000:3000" - "3000:3000"

12
go.mod
View file

@ -1,17 +1,17 @@
module trackncore module ncore-stats
go 1.23 go 1.23
toolchain go1.23.2 toolchain go1.23.2
require ( require (
github.com/PuerkitoBio/goquery v1.10.0 github.com/PuerkitoBio/goquery v1.10.1
github.com/fsnotify/fsnotify v1.7.0 github.com/fsnotify/fsnotify v1.8.0
github.com/joho/godotenv v1.5.1 github.com/joho/godotenv v1.5.1
) )
require ( require (
github.com/andybalholm/cascadia v1.3.2 // indirect github.com/andybalholm/cascadia v1.3.3 // indirect
golang.org/x/net v0.30.0 // indirect golang.org/x/net v0.33.0 // indirect
golang.org/x/sys v0.26.0 // indirect golang.org/x/sys v0.28.0 // indirect
) )

View file

@ -14,8 +14,8 @@ A simple Go project to scrape and track profile statistics (rank, upload, downlo
1. Clone the repo: 1. Clone the repo:
```bash ```bash
git clone https://github.com/skidoodle/trackncore.git git clone https://github.com/skidoodle/ncore-stats.git
cd trackncore cd ncore-stats
``` ```
2. Create a `.env` file with your nCore credentials: 2. Create a `.env` file with your nCore credentials:
@ -50,15 +50,15 @@ To deploy the project using Docker Compose:
```yaml ```yaml
services: services:
trackncore: ncore-stats:
image: ghcr.io/skidoodle/trackncore:main image: ghcr.io/skidoodle/ncore-stats:main
container_name: trackncore container_name: ncore-stats
restart: unless-stopped restart: unless-stopped
ports: ports:
- "3000:3000" - "3000:3000"
volumes: volumes:
- data:/app/data - data:/app/data
volumes: volumes:
data: data:
``` ```