services: minecraft-base: build: context: . dockerfile: ./dockerfiles/Dockerfile.base args: JAVA_VERSION: ${JAVA_VERSION:-latest} image: ${BASE_IMAGE:-localhost/minecraft-base}:${BASE_TAG:-latest} minecraft-vanilla: build: context: . dockerfile: ./dockerfiles/Dockerfile.vanilla args: VERSION: ${VERSION:-latest} image: ${IMAGE:-localhost/minecraft}:${TAG:-latest} depends_on: - minecraft-base environment: EULA: "${EULA:-false}" DEBUG: "${DEBUG:-false}" JVM_OPTS: "${JAVA_OPTS:--Xms1G -Xmx2G}" minecraft-spigot: build: context: . dockerfile: ./dockerfiles/Dockerfile.spigot args: VERSION: ${MINECRAFT_VERSION:-latest} image: ${SPIGOT_IMAGE:-localhost/minecraft}:${SPIGOT_TAG:-spigot-latest} depends_on: - minecraft-base environment: EULA: "${EULA:-false}" DEBUG: "${DEBUG:-false}" JVM_OPTS: "${JAVA_OPTS:--Xms1G -Xmx2G}"