我想运行 docker-compose.yaml 文件,但出现以下错误:
“无效,因为:services.eventstore.volumes 包含无效类型,它应该是一个数组”。
我将文件备份eventstore
到我的 Windows 桌面,我想使用 docker 恢复它。
这是我的 docker-compose 文件:
version: '3'
services:
eventstore:
image: eventstore/eventstore:release-5.0.1
container_name: eventstore
ports:
- 2113:2113
- 1113:1113
restart: always
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:2113/stats || exit 1"]
interval: 5s
timeout: 2s
environment:
- EVENTSTORE_RUN_PROJECTIONS=all
- EVENTSTORE_START_STANDARD_PROJECTIONS=TRUE
volumes:
-C:/Users/cerdem/Desktop/eventstore:./data
-C:/Users/cerdem/Desktop/eventstore:./logs
有关更多信息,我在放置该volumes
部分后出现错误,因为我无法理解该部分,我将从local
not恢复 db 文件host
。
我的电脑运行的是windows 1O。