-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
45 lines (41 loc) · 993 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: "3.6"
services:
mapserver_frontend:
image: node:21.7.3-alpine
volumes:
- "dev_home:/root"
- ".:/data"
working_dir: /data/public
command: ["npm", "ci"]
mapserver:
image: golang:1.22.4
depends_on:
- minetest
- mapserver_frontend
volumes:
- "dev_home:/root"
- "world_data:/data/world"
- "go_dir:/go"
- "go_cache:/.cache"
- ".:/data"
- "./public:/data/world/public"
- "./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.7.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: {}
go_dir: {}
go_cache: {}