diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/bvn13-minetest-server.iml b/.idea/bvn13-minetest-server.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/bvn13-minetest-server.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..b2002e5 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,58 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..0b790a6 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..f569b0f --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 8c8a76d..83f8b5f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,15 +1,21 @@ services: - # https://claytonerrington.com/blog/dockerize-luanti/ - minetest-server: - image: lscr.io/linuxserver/minetest:latest - container_name: minetest-server + minetest-server: + image: lscr.io/linuxserver/minetest:latest + container_name: minetest-server + deploy: + restart_policy: + condition: on-failure + delay: 5s + max_attempts: 3 + window: 120s + update_config: + parallelism: 2 environment: - - PUID=1000 - - PGID=1000 - - TZ=Europe/Moscow - - CLI_ARGS=--gameid minetest --port 30000 - volumes: - - ~/minetest/:/config/.minetest + PUID: '1000' + TZ: Europe/Moscow + PGID: '1000' + CLI_ARGS: '--gameid minetest --port 30000' ports: - - 30000:30000/udp - restart: unless-stopped + - 30000:30000/udp + volumes: + - ${DATA}:/config/.minetest/