mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Squashed commit of the following:
commit5be0778dc9Author: Danial <admin@redsparr0w.com> Date: Sun Sep 19 14:24:12 2021 +1200 minor fixup commitef3b63b54fAuthor: 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:
@@ -6,3 +6,4 @@
|
||||
*/*.jar
|
||||
*.iml
|
||||
.DS_Store
|
||||
2006Scape Server/data/logs
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user