-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
36 lines (34 loc) · 895 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
36 lines (34 loc) · 895 Bytes
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
services:
minecraft:
build:
context: .
dockerfile: docker/Dockerfile
ports:
- "${MINECRAFT_GAME_PORT:-25565}:25565"
- "${MINECRAFT_PLUGIN_PORT:-25576}:25576"
stdin_open: true
tty: true
environment:
EULA: "true"
MINESQL_HOST: host.docker.internal
MC_SERVER_PORT: "25565"
MC_PLUGIN_PORT: "25576"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- minecraft_world:/minecraft/world
- minecraft_logs:/minecraft/logs
networks:
- minesql-net
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "bash -c 'timeout 1 bash -c \"cat < /dev/null > /dev/tcp/localhost/25576\" 2>/dev/null && test -f /tmp/minesql-ready'"]
interval: 5s
timeout: 3s
retries: 40
start_period: 15s
volumes:
minecraft_world:
minecraft_logs:
networks:
minesql-net: