mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
minecraft server
This commit is contained in:
parent
93fd3e2d54
commit
f53902abee
2 changed files with 29 additions and 1 deletions
|
|
@ -72,6 +72,14 @@
|
||||||
state: touch
|
state: touch
|
||||||
mode: u=rw,g=rw,o=rw
|
mode: u=rw,g=rw,o=rw
|
||||||
#####
|
#####
|
||||||
|
# APP: minecraft server, /apps/minecraft
|
||||||
|
#####
|
||||||
|
- name: Create /apps/minecraft
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /apps/minecraft
|
||||||
|
state: directory
|
||||||
|
mode: u=rwx,g=rx,o=rx
|
||||||
|
#####
|
||||||
# END: docker compose up!
|
# END: docker compose up!
|
||||||
#####
|
#####
|
||||||
# We want this to be last so that all app-specific config has been done.
|
# We want this to be last so that all app-specific config has been done.
|
||||||
|
|
|
||||||
|
|
@ -132,6 +132,26 @@ services:
|
||||||
BACKEND_URL: "http://cors-school-server:8080/api"
|
BACKEND_URL: "http://cors-school-server:8080/api"
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
minecraft_server:
|
||||||
|
container_name: minecraft-server
|
||||||
|
image: itzg/minecraft-server:latest
|
||||||
|
environment:
|
||||||
|
- TYPE=VANILLA
|
||||||
|
- VERSION=1.20.1
|
||||||
|
- DIFFICULTY=HARD
|
||||||
|
- EULA=TRUE
|
||||||
|
- MOTD=baden
|
||||||
|
- MEMORY=6G
|
||||||
|
- MODE=creative
|
||||||
|
- PVP=true
|
||||||
|
- SERVER_NAME=hallenbad
|
||||||
|
- USE_AIKAR_FLAGS=true
|
||||||
|
env_file:
|
||||||
|
# For example, storing the WHITELIST and OPS
|
||||||
|
- /apps/minecraft/.env
|
||||||
|
ports:
|
||||||
|
- "25565:25565"
|
||||||
|
volumes:
|
||||||
|
- /apps/minecraft/server:/data
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue