mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
1c5b400f00
* Merge The File&Game Servers Into One Module * Make SettingsLoader A GameConstants ConfigLoader If A Config File Isn't Used, The Server Will Fall Back To The Defaults Set In GameConstants.java Config Files Can Be Loaded With The "-c/-config configfilelocation.json" Added A Default Prefilled ServerConfig.json * Update ConfigLoader * Bring Back Independant "Secrets" Loader For External Password Stuff * Added A Bunch More Vars To The ConfigLoader * Included A Sample "Server Config" * Also Updated README.md As Parabot Is No Longer Maintained & We No Longer Have A FileServer Module * Bundle FileServer with Server (docker) * Remove /udp and http port * Update .gitignore * Move FileServer from `org.apollo.jagcached` → `org/apollo/jagcached` * Tidy GameConstants & Add More Vars To ConfigLoader * Organised Up GameConstants A Little To Separate ConfigLoader Vars From The Rest * Added Some More Variables To Be Loaded Through The ConfigLoader * Fix A Derp Caused By Laziness * Add -c/-config arg to README.md * Enable FileServer By Default Co-authored-by: Danial <admin@redsparr0w.com>
24 lines
748 B
YAML
24 lines
748 B
YAML
|
|
version: "3"
|
|
services:
|
|
rsps-2006scape-build:
|
|
image: maven:3.8.2-jdk-8
|
|
container_name: rsps-2006scape-build
|
|
command: ["mvn", "-B", "clean", "install"]
|
|
volumes:
|
|
- ./:/usr/src/2006scape
|
|
working_dir: /usr/src/2006scape
|
|
restart: "no"
|
|
|
|
rsps-2006scape-server:
|
|
image: openjdk:8-alpine
|
|
container_name: rsps-2006scape-server
|
|
command: ["java", "-jar", "target/server-1.0-jar-with-dependencies.jar", "-c", "ServerConfig.json"]
|
|
volumes:
|
|
- ./2006Scape Server:/usr/src/server
|
|
working_dir: /usr/src/server
|
|
ports: # You will need to open other ports if your world ID is not 1 (43597 for world 2)
|
|
- 43594:43594 # Server
|
|
- 43595-43596:43595-43596 # File Server
|
|
restart: unless-stopped
|