Book-Microservices-v2 / chapter08d

Learn Microservices with Spring Boot (2nd edition) - Chapter 8 (FINAL)
https://tpd.io/book-extra
11 stars 18 forks source link

How to find key - command: 'agent -dev -node=learnmicro -client=0.0.0.0 -log-level=INFO' #1

Closed andreykirson closed 3 years ago

andreykirson commented 3 years ago

Hi, I've tried in cmd to run docker-compose up but received a note : yaml: line 11: did not find expected key

line 11 is command: 'agent -dev -node=learnmicro -client=0.0.0.0 -log-level=INFO'

version: "3" services: consul-dev: image: consul:1.7.2 container_name: consul ports:

networks: microservices: driver: bridge

mechero commented 3 years ago

Looks like a problem with YAML parsing, not that command itself. Have you double-checked the indentation? The file is not formatted as code in your question so it's hard to try to figure it out.

andreykirson commented 3 years ago

Yes, my mistake. Sorry to bother you.