-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
51 lines (49 loc) · 1.14 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
51 lines (49 loc) · 1.14 KB
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
46
47
48
49
50
51
services:
minecraft:
image: itzg/minecraft-server:latest
container_name: mc-exporter-test-server
environment:
EULA: "TRUE"
VERSION: "LATEST"
TYPE: "VANILLA"
ONLINE_MODE: "FALSE"
ENABLE_RCON: "TRUE"
RCON_PASSWORD: "testpass"
RCON_PORT: "25575"
MEMORY: "2G"
LEVEL: "world"
ports:
- "25565:25565"
volumes:
- mc-data:/data
healthcheck:
test: ["CMD", "mc-health"]
start_period: 90s
interval: 10s
timeout: 5s
retries: 30
tty: true
stdin_open: true
exporter:
build:
context: .
dockerfile: Dockerfile.dev
container_name: mc-exporter-test-exporter
# Run as the itzg/minecraft-server UID so the read-only world mount is readable.
user: "1000:1000"
depends_on:
minecraft:
condition: service_healthy
environment:
MC_RCON_ADDRESS: "minecraft:25575"
MC_RCON_PASSWORD: "testpass"
MC_WORLD: "/mc/world"
MC_NAME_SOURCE: "offline"
WEB_LISTEN_ADDRESS: ":9150"
LOG_LEVEL: "debug"
ports:
- "9150:9150"
volumes:
- mc-data:/mc:ro
volumes:
mc-data: