mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-28 17:57:34 +00:00
fix(tests): ensure Nginx is fully spun up before starting MC container (#3763)
This commit is contained in:
@@ -3,9 +3,15 @@ services:
|
|||||||
image: nginx
|
image: nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ./web:/usr/share/nginx/html
|
- ./web:/usr/share/nginx/html
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "--fail", "http://localhost/configs.zip"]
|
||||||
|
interval: 3s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
mc:
|
mc:
|
||||||
depends_on:
|
depends_on:
|
||||||
- web
|
web:
|
||||||
|
condition: service_healthy
|
||||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||||
environment:
|
environment:
|
||||||
EULA: "true"
|
EULA: "true"
|
||||||
|
|||||||
@@ -3,9 +3,16 @@ services:
|
|||||||
image: nginx
|
image: nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ./web:/usr/share/nginx/html
|
- ./web:/usr/share/nginx/html
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
["CMD", "curl", "--fail", "http://localhost/motion-tween-example.gif"]
|
||||||
|
interval: 3s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
mc:
|
mc:
|
||||||
depends_on:
|
depends_on:
|
||||||
- web
|
web:
|
||||||
|
condition: service_healthy
|
||||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||||
environment:
|
environment:
|
||||||
EULA: "true"
|
EULA: "true"
|
||||||
|
|||||||
@@ -3,9 +3,21 @@ services:
|
|||||||
image: nginx
|
image: nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ./web:/usr/share/nginx/html
|
- ./web:/usr/share/nginx/html
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD",
|
||||||
|
"curl",
|
||||||
|
"--fail",
|
||||||
|
"http://localhost/4737386_minecraft_squircle_icon.png",
|
||||||
|
]
|
||||||
|
interval: 3s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
mc:
|
mc:
|
||||||
depends_on:
|
depends_on:
|
||||||
- web
|
web:
|
||||||
|
condition: service_healthy
|
||||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||||
environment:
|
environment:
|
||||||
EULA: "true"
|
EULA: "true"
|
||||||
|
|||||||
@@ -3,9 +3,21 @@ services:
|
|||||||
image: nginx
|
image: nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ./web:/usr/share/nginx/html
|
- ./web:/usr/share/nginx/html
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD",
|
||||||
|
"curl",
|
||||||
|
"--fail",
|
||||||
|
"http://localhost/4737386_minecraft_squircle_icon.png",
|
||||||
|
]
|
||||||
|
interval: 3s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
mc:
|
mc:
|
||||||
depends_on:
|
depends_on:
|
||||||
- web
|
web:
|
||||||
|
condition: service_healthy
|
||||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||||
environment:
|
environment:
|
||||||
EULA: "true"
|
EULA: "true"
|
||||||
|
|||||||
@@ -3,9 +3,15 @@ services:
|
|||||||
image: nginx
|
image: nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ./web:/usr/share/nginx/html
|
- ./web:/usr/share/nginx/html
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "--fail", "http://localhost/pack.toml"]
|
||||||
|
interval: 3s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
mc:
|
mc:
|
||||||
depends_on:
|
depends_on:
|
||||||
- web
|
web:
|
||||||
|
condition: service_healthy
|
||||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||||
environment:
|
environment:
|
||||||
EULA: "true"
|
EULA: "true"
|
||||||
|
|||||||
Reference in New Issue
Block a user