mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-28 09:53:20 +00:00
tests: use service_started condition
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
monitor:
|
monitor:
|
||||||
depends_on:
|
depends_on:
|
||||||
- mc
|
mc:
|
||||||
|
condition: service_started
|
||||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||||
entrypoint: mc-monitor
|
entrypoint: mc-monitor
|
||||||
command: status --host mc --retry-interval 1s --timeout 1s --retry-limit 60
|
command: status --host mc --retry-interval 1s --timeout 1s --retry-limit 60
|
||||||
@@ -14,4 +15,3 @@ services:
|
|||||||
TYPE: PAPER
|
TYPE: PAPER
|
||||||
# regression tests https://github.com/itzg/docker-minecraft-server/issues/2545
|
# regression tests https://github.com/itzg/docker-minecraft-server/issues/2545
|
||||||
MOTD: "Foo§rBar"
|
MOTD: "Foo§rBar"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
monitor:
|
monitor:
|
||||||
depends_on:
|
depends_on:
|
||||||
- mc
|
mc:
|
||||||
|
condition: service_started
|
||||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||||
entrypoint: mc-monitor
|
entrypoint: mc-monitor
|
||||||
command: status --host mc --retry-interval 1s --timeout 1s --retry-limit 300
|
command: status --host mc --retry-interval 1s --timeout 1s --retry-limit 300
|
||||||
|
|||||||
Reference in New Issue
Block a user