-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.22 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.22 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
52
services:
minecraft:
build:
context: .
dockerfile: docker/Dockerfile
ports:
- "${MINECRAFT_GAME_PORT:-25565}:25565"
stdin_open: true
tty: true
environment:
EULA: "true"
MINESQL_HOST: minesql
MC_SERVER_PORT: "25565"
MC_PLUGIN_PORT: "25576"
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
minesql:
build:
context: .
dockerfile: docker/Dockerfile.engine
ports:
- "${MINESQL_PORT:-5432}:5433"
- "${MINESQL_CHAT_PORT:-5456}:5456"
environment:
MINESQL_MINECRAFT_ADDR: minecraft:25576
MINESQL_PORT: "5433"
MINESQL_CHAT_PORT: "5456"
MINESQL_HOST_PORT: "${MINESQL_PORT:-5432}"
networks:
- minesql-net
depends_on:
minecraft:
condition: service_healthy
restart: on-failure:5
volumes:
minecraft_world:
minecraft_logs:
networks:
minesql-net: