-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.11 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
services:
minecraft:
build: ./docker
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 'echo >/dev/tcp/localhost/25576' 2>/dev/null"]
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
volumes:
minecraft_world:
minecraft_logs:
networks:
minesql-net: