Join a existing Network with Static IP?

Hi,

i have 2 Apps who need a fixed IP Adress. The first App (TVHeadend) creates the Bridged Network:

.
.
.
networks:
      tvheadend:
        ipv4_address: 172.19.0.2
    
networks:
  tvheadend:
    driver: bridge
    ipam:
     config:
       - subnet: 172.19.0.0/16
         gateway: 172.19.0.1

With the Second App Telerising i cant get a fixed IP:

 networks:
          tvheadend_tvheadend:
          ipv4_adress: 172.19.0.3
          
networks:
  tvheadend_tvheadend:
    external: true

I get the Error ipv4 must be a mapping.

Your spacing looks wrong, but it’s important in yaml format.

It doesn’t look like the actual error message. There is no “ipv4” key in your shared compose, but others had similar error messages with “ipv4_address”

It is important to share the exact error messag and to make sure your indentation is exactly as you had in the original file even if the issue is not with the indentation.

It looks like you shared the top-level networks block and the networks block under the service, but it was not menitoned in your post.

By the way your second yaml contains ipv4_adress not ipv4_address. One “d” is missing.

So again: exact error message and the original compose file would help. You can delete lines that you don’t want to share, but keep the indentation and everything else.

Yes, sometimes… and the current summer heat.

It’s working well now :grinning face: