mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-19 07:46:23 +00:00
30 lines
752 B
YAML
30 lines
752 B
YAML
services:
|
|
web:
|
|
image: nginx
|
|
volumes:
|
|
- ./web:/usr/share/nginx/html
|
|
healthcheck:
|
|
test: ["CMD", "curl", "--fail", "http://localhost/configs.zip"]
|
|
interval: 3s
|
|
timeout: 5s
|
|
retries: 3
|
|
mc:
|
|
depends_on:
|
|
web:
|
|
condition: service_healthy
|
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
|
environment:
|
|
EULA: "true"
|
|
SETUP_ONLY: "true"
|
|
GENERIC_PACKS: http://web/configs.zip,/packs/testing.zip
|
|
LOG_TIMESTAMP: "true"
|
|
# the following are only used to speed up test execution
|
|
TYPE: CUSTOM
|
|
CUSTOM_SERVER: /servers/fake.jar
|
|
VERSION: 1.18.1
|
|
DEBUG: "true"
|
|
volumes:
|
|
- ./packs:/packs
|
|
- ./data:/data
|
|
- ./fake.jar:/servers/fake.jar
|