Squashed commit of the following:

commit 5be0778dc9
Author: Danial <admin@redsparr0w.com>
Date:   Sun Sep 19 14:24:12 2021 +1200

    minor fixup

commit ef3b63b54f
Author: Danial <admin@redsparr0w.com>
Date:   Sun Sep 19 14:11:27 2021 +1200

    Add docker compose file for running servers in containers
This commit is contained in:
RedSparr0w
2021-09-20 01:24:14 +12:00
parent 0d776a82b9
commit d27d3c357c
2 changed files with 36 additions and 0 deletions
+1
View File
@@ -6,3 +6,4 @@
*/*.jar */*.jar
*.iml *.iml
.DS_Store .DS_Store
2006Scape Server/data/logs
+35
View File
@@ -0,0 +1,35 @@
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-file-server:
image: openjdk:8-alpine
container_name: rsps-2006scape-file-server
command: ["java", "-jar", "target/file_server-1.0-jar-with-dependencies.jar"]
volumes:
- ./2006Scape file_server:/usr/src/fileserver
working_dir: /usr/src/fileserver
ports:
- 8080:8080 # web panel
- 43595-43596:43595-43596 # File Server
restart: unless-stopped
rsps-2006scape-server:
image: openjdk:8-alpine
container_name: rsps-2006scape-server
command: ["java", "-jar", "target/server-1.0-jar-with-dependencies.jar"]
volumes:
- ./2006Scape Server:/usr/src/server
working_dir: /usr/src/server
ports:
- 43594:43594 # Server
- 43594:43594/udp # Server
restart: unless-stopped