games: it is possible to have multiple minecraft servers running
This commit is contained in:
parent
d762001cb6
commit
612ba70bbf
1 changed files with 36 additions and 6 deletions
|
@ -15,6 +15,7 @@
|
||||||
cname = [
|
cname = [
|
||||||
# create a sub-subdomain for each game
|
# create a sub-subdomain for each game
|
||||||
"mc_compsoc.games CNAME games"
|
"mc_compsoc.games CNAME games"
|
||||||
|
"mc_compsoc2.games CNAME games"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -32,32 +33,61 @@
|
||||||
service.environment = {
|
service.environment = {
|
||||||
# this is what it last ran on
|
# this is what it last ran on
|
||||||
SPIGOT_VER="1.18.2";
|
SPIGOT_VER="1.18.2";
|
||||||
|
EULA="true";
|
||||||
};
|
};
|
||||||
|
|
||||||
service.volumes = [
|
service.volumes = [
|
||||||
# figure out what this needs and use itt o get up and running
|
# figure out what this needs and use itt o get up and running
|
||||||
# /home/nimmis/mc-srv:/minecraft
|
# /home/nimmis/mc-srv:/minecraft
|
||||||
#"/etc/games_satisfactory/config:/config"
|
"/etc/games/minecraft/compsoc/test/config:/minecraft"
|
||||||
];
|
];
|
||||||
service.ports = [
|
service.ports = [
|
||||||
"25565:25565/tcp"
|
"25565:25565/tcp"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mc_compsoc2.settings = {
|
||||||
|
docker-compose.raw.networks.default.name = "mc_compsoc2";
|
||||||
|
|
||||||
|
services.mc_compsoc = {
|
||||||
|
service.image = "nimmis/spigot:latest";
|
||||||
|
# setting these here as they arent special
|
||||||
|
service.environment = {
|
||||||
|
# this is what it last ran on
|
||||||
|
SPIGOT_VER="1.18.2";
|
||||||
|
EULA="true";
|
||||||
|
};
|
||||||
|
|
||||||
|
service.volumes = [
|
||||||
|
# figure out what this needs and use itt o get up and running
|
||||||
|
# /home/nimmis/mc-srv:/minecraft
|
||||||
|
"/etc/games/minecraft/compsoc/test2/config:/minecraft"
|
||||||
|
];
|
||||||
|
service.ports = [
|
||||||
|
"25566:25565/tcp"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
services = {
|
services = {
|
||||||
nginx.virtualHosts = {
|
nginx.virtualHosts = {
|
||||||
"valhiem.brendan.ie" = {
|
"mc_compsoc.games.skynet.ie" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "brendan";
|
useACMEHost = "skynet";
|
||||||
|
|
||||||
locations."/".proxyPass = "http://localhost:2456";
|
locations."/".proxyPass = "http://localhost:25565";
|
||||||
|
};
|
||||||
|
|
||||||
|
"mc_compsoc2.games.skynet.ie" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "skynet";
|
||||||
|
|
||||||
|
locations."/".proxyPass = "http://localhost:25566";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue