faradayio / cage

Develop and deploy complex Docker applications
http://cage.faraday.io
Apache License 2.0
307 stars 26 forks source link

Can't use ipv4_address in backend.yml #92

Open haanamomo opened 5 years ago

haanamomo commented 5 years ago

I want to use ipv4-address field in docker-compose file, and this field is supported by docker-compose.yml version 2. However, when I run cage up, I got this error:

services.paas.networks.net: unknown field ipv4_address, expected aliases at line 28 column 9

Below is my backend.yml:

service
  node2: 
    image: "paas/node"
    build: .
    networks: 
      net:
        ipv4_address: 172.24.0.2

networks: 
  net:
    ipam:
      config:
        - subnet: 172.24.0.0/24
emk commented 5 years ago

Good catch! In general, these features would need to be added to the compose_yml crate. I don't have time to do that myself right now, but I'd be happy to show somebody else how.