I want to run docker-compose.yaml file but i get the following error:
"invalid because: services.eventstore.volumes contains an invalid type, it should be an array".
I backup the eventstore
file to my windows desktop and i want to restore it using docker.
Here is my docker-compose file:
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
For more information, i got the errors after i put the volumes
section, cuz i couldn't understand that part, and i will restore the db file from local
not host
.
My computer is running windows 1O.