2021-06-22 20:24:22 +03:00
|
|
|
version: "3.6"
|
|
|
|
|
|
|
|
services:
|
2021-06-22 20:39:43 +03:00
|
|
|
mapserver_frontend:
|
2024-04-11 16:17:40 +03:00
|
|
|
image: node:21.7.3-alpine
|
2021-06-22 20:39:43 +03:00
|
|
|
volumes:
|
|
|
|
- "dev_home:/root"
|
|
|
|
- ".:/data"
|
|
|
|
working_dir: /data/public
|
2023-12-27 12:35:24 +03:00
|
|
|
command: ["npm", "ci"]
|
2021-06-22 20:39:43 +03:00
|
|
|
|
2021-06-22 20:24:22 +03:00
|
|
|
mapserver:
|
2024-06-05 00:27:56 +03:00
|
|
|
image: golang:1.22.4
|
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"
|
2023-12-27 12:35:24 +03:00
|
|
|
- "go_dir:/go"
|
|
|
|
- "go_cache:/.cache"
|
2021-06-22 20:24:22 +03:00
|
|
|
- ".:/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:
|
2023-12-27 12:35:24 +03:00
|
|
|
image: registry.gitlab.com/minetest/minetest/server:5.7.0
|
2021-06-22 20:24:22 +03:00
|
|
|
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: {}
|
2023-12-27 12:35:24 +03:00
|
|
|
dev_home: {}
|
|
|
|
go_dir: {}
|
|
|
|
go_cache: {}
|