2021-06-22 20:24:22 +03:00
|
|
|
version: "3.6"
|
|
|
|
|
|
|
|
services:
|
2021-06-22 20:39:43 +03:00
|
|
|
mapserver_frontend:
|
|
|
|
image: node:alpine3.13
|
|
|
|
volumes:
|
|
|
|
- "dev_home:/root"
|
|
|
|
- ".:/data"
|
|
|
|
working_dir: /data/public
|
|
|
|
command: ["npm", "i"]
|
|
|
|
|
2021-06-22 20:24:22 +03:00
|
|
|
mapserver:
|
2022-01-07 03:41:30 +03:00
|
|
|
image: golang:1.17.6
|
2021-06-22 20:24:22 +03:00
|
|
|
depends_on:
|
|
|
|
- minetest
|
2021-06-22 20:39:43 +03:00
|
|
|
- mapserver_frontend
|
2021-06-22 20:24:22 +03:00
|
|
|
volumes:
|
|
|
|
- "dev_home:/root"
|
|
|
|
- "world_data:/data/world"
|
|
|
|
- ".:/data"
|
2021-06-22 20:30:17 +03:00
|
|
|
- "./public:/data/world/public"
|
2021-06-22 20:24:22 +03:00
|
|
|
- "./dev/mapserver.json:/data/world/mapserver.json"
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
working_dir: /data/world
|
|
|
|
command: ["go", "run", ".."]
|
|
|
|
|
|
|
|
minetest:
|
|
|
|
image: registry.gitlab.com/minetest/minetest/server:5.4.0
|
|
|
|
user: root
|
|
|
|
volumes:
|
|
|
|
- "world_data:/root/.minetest/worlds/world"
|
|
|
|
- "./dev/worldmods:/root/.minetest/worlds/world/worldmods"
|
|
|
|
- "./dev/minetest.conf:/etc/minetest/minetest.conf"
|
|
|
|
- "./dev/mapserver.json:/root/.minetest/worlds/world/mapserver.json"
|
|
|
|
ports:
|
|
|
|
- "30000:30000/udp"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
world_data: {}
|
|
|
|
dev_home: {}
|