-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.integration.yml
More file actions
40 lines (38 loc) · 1.14 KB
/
docker-compose.integration.yml
File metadata and controls
40 lines (38 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
# Docker Compose for Minecraft RCON Integration Tests
# This file is used by GitHub Actions for integration testing
# Uses high-numbered ports to avoid conflicts with local development servers
#
# Port Configuration (Single Source of Truth):
# - Local testing: 35575 (RCON), 35565 (Minecraft)
# - CI/CD: 35575 (RCON), 35565 (Minecraft)
services:
minecraft:
image: itzg/minecraft-server
container_name: cavarest-rcon-minecraft
ports:
- "35565:25565" # Minecraft server port (exposed on high port)
- "35575:25575" # RCON port (exposed on high port)
environment:
- EULA=TRUE
- ONLINE_MODE=false
- TYPE=PAPER
- VERSION=1.21.8
- RCON_PASSWORD=cavarest
- ENABLE_RCON=true
- MAX_PLAYERS=5
- MEMORY=512M
# Set spawn protection to 0 to allow commands near spawn
- SPAWN_PROTECTION=0
# Enable debug logging for troubleshooting
- DEBUG=false
volumes:
- minecraft-data:/data
healthcheck:
test: ["CMD", "mc-health"]
interval: 30s
timeout: 10s
retries: 15
start_period: 120s
stop_grace_period: 30s
volumes:
minecraft-data: