This simple compose file
services:
mongo:
image: mongo:7.0
command: --bind_ip 0.0.0.0
ports:
- "27017:27017"
networks:
my-network:
aliases:
- my-mongo
could not be started:
$ container-compose up
Error: DecodingError.typeMismatch: expected value of type Sequence. Path: services.mongo.networks. Debug description: Expected to decode Sequence but found Node instead.
Specification allows this
https://github.com/compose-spec/compose-go/blob/main/schema/compose-spec.json#L559
$ container-compose --version
container-compose version 0.10.0
This simple compose file
could not be started:
$ container-compose up Error: DecodingError.typeMismatch: expected value of type Sequence. Path: services.mongo.networks. Debug description: Expected to decode Sequence but found Node instead.Specification allows this
https://github.com/compose-spec/compose-go/blob/main/schema/compose-spec.json#L559