mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-05-25 13:15:25 +00:00
fix(tests): ensure Nginx is fully spun up before starting MC container (#3763)
This commit is contained in:
committed by
GitHub
parent
2d1e96f5ba
commit
0e3c655d27
@@ -3,9 +3,15 @@ services:
|
||||
image: nginx
|
||||
volumes:
|
||||
- ./web:/usr/share/nginx/html
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "--fail", "http://localhost/pack.toml"]
|
||||
interval: 3s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
mc:
|
||||
depends_on:
|
||||
- web
|
||||
web:
|
||||
condition: service_healthy
|
||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||
environment:
|
||||
EULA: "true"
|
||||
|
||||
Reference in New Issue
Block a user