Add a Minecraft serber
This commit is contained in:
parent
783755e33c
commit
c9656638be
@ -55,4 +55,5 @@ all:
|
||||
web2.desu.ltd:
|
||||
game:
|
||||
hosts:
|
||||
game1.desu.ltd:
|
||||
game2.desu.ltd:
|
||||
|
@ -2,9 +2,41 @@
|
||||
# vim:ft=ansible:
|
||||
# Game servers
|
||||
---
|
||||
- hosts: game
|
||||
roles:
|
||||
- role: backup
|
||||
vars:
|
||||
backup_s3backup_list_extra:
|
||||
- /data
|
||||
tags: [ backup ]
|
||||
- role: motd
|
||||
vars:
|
||||
motd_watch_services_extra:
|
||||
- docker
|
||||
tags: [ motd ]
|
||||
- role: docker
|
||||
tags: [ docker, skip-pull ]
|
||||
- hosts: game1.desu.ltd
|
||||
tasks:
|
||||
- name: docker deploy minecraft valhelsia3
|
||||
docker_container:
|
||||
name: valhelsia3
|
||||
state: started
|
||||
image: rehashedsalt/minecraft-forge:1.16.5-36.1.13-1.0.0
|
||||
restart_policy: unless-stopped
|
||||
pull: yes
|
||||
env:
|
||||
JRE_XMX: 6G
|
||||
JRE_XMS: 3G
|
||||
FORGE_PACK_ZIP: "https://media.forgecdn.net/files/3293/967/Valhelsia+3-3.3.1-SERVER.zip"
|
||||
ports:
|
||||
- "25565:25565/tcp"
|
||||
- "25565:25565/udp"
|
||||
volumes:
|
||||
- /data/minecraft/valhelsia3/world:/minecraft/world
|
||||
- /data/minecraft/valhelsia3/ops.json:/minecraft/ops.json
|
||||
tags: [ docker, minecraft ]
|
||||
- hosts: game2.desu.ltd
|
||||
vars:
|
||||
container_default_behavior: no_defaults
|
||||
tasks:
|
||||
# https://github.com/mkrupczak3/SCP-SECRET-LAB-DOCKER
|
||||
# Kinda forked it and changed a few settings tho
|
||||
@ -36,16 +68,3 @@
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /data/terraria/data:/terraria
|
||||
tags: [ docker, terraria ]
|
||||
roles:
|
||||
- role: backup
|
||||
vars:
|
||||
backup_s3backup_list_extra:
|
||||
- /data
|
||||
tags: [ backup ]
|
||||
- role: motd
|
||||
vars:
|
||||
motd_watch_services_extra:
|
||||
- docker
|
||||
tags: [ motd ]
|
||||
- role: docker
|
||||
tags: [ docker, skip-pull ]
|
||||
|
Loading…
Reference in New Issue
Block a user