# Question about docker-compose and macvlan

**URL:** <https://forums.docker.com/t/question-about-docker-compose-and-macvlan/103110>\
**Category:** General\
**Created:** [January 15, 2021, 11:41pm UTC](https://forums.docker.com/t/question-about-docker-compose-and-macvlan/103110 "2021-01-15T23:41:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![uwe72](https://avatars.discourse-cdn.com/v4/letter/u/e47c2d/32.png) [@uwe72](https://forums.docker.com/u/uwe72)\
**Post date:** [January 15, 2021, 11:41pm UTC](https://forums.docker.com/t/question-about-docker-compose-and-macvlan/103110/1 "2021-01-15T23:41:45Z")

</div>

hi there,  
i have a container with a own ip, realized by macvlan mode. Works perfect.

The only problem i have is that from host i cannot access the ip of the container (192.168.178.210). What can i do here?

THANKS

```
version: '2.1'
services:
  iobroker:
    restart: always
image: buanet/iobroker:latest
container_name: iobroker
hostname: iobroker
ports:
  - "8081:8081"
  - "8087:8087"
volumes:
  - ./my-datas/iobroker/iobrokerdata:/opt/iobroker
networks:
  public:
    ipv4_address: 192.168.178.210
networks:
  public:
driver: macvlan
driver_opts:
  parent: eno1
ipam:
  config:
    - subnet: 192.168.178.0/24
      gateway: 192.168.178.1
      ip_range: 192.168.178.210/32
'
```
