# When I try docker-compose.yml, it fail

**URL:** <https://community.netdata.cloud/t/when-i-try-docker-compose-yml-it-fail/1663>\
**Category:** Help\
**Tags:** agent\
**Created:** [September 1, 2021, 4:40pm UTC](https://community.netdata.cloud/t/when-i-try-docker-compose-yml-it-fail/1663 "2021-09-01T16:40:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_Orellana](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/jorge_orellana/32/1111_2.png) [@Jorge\_Orellana](https://community.netdata.cloud/u/Jorge_Orellana)\
**Post date:** [September 1, 2021, 4:40pm UTC](https://community.netdata.cloud/t/when-i-try-docker-compose-yml-it-fail/1663/1 "2021-09-01T16:40:04Z")

</div>

When I try docker-compose.yml, it fail, and I don’t see what’s the problem in my docker-compose.yml:  
version: ‘3’  
services:  
netdata:  
image: netdata/netdata  
container\_name: netdata  
hostname: [example.com](http://example.com) # set to fqdn of host  
ports:  
- 19999:19999  
restart: unless-stopped  
cap\_add:  
- SYS\_PTRACE  
security\_opt:  
- apparmor:unconfined  
volumes:  
- netdataconfig:/etc/netdata  
- netdatalib:/var/lib/netdata  
- netdatacache:/var/cache/netdata  
- /etc/passwd:/host/etc/passwd:ro  
- /etc/group:/host/etc/group:ro  
- /proc:/host/proc:ro  
- /sys:/host/sys:ro  
- /etc/os-release:/host/etc/os-release:ro  
environment:  
- NETDATA\_CLAIM\_TOKEN=  
- NETDATA\_CLAIM\_URL=[https://app.netdata.cloud](https://app.netdata.cloud)  
- NETDATA\_CLAIM\_ROOMS=  
volumes:  
netdataconfig:  
netdatalib:  
netdatacache:

The output is:  
ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:  
services.netdata.volumes contains an invalid type, it should be an array

It’s exactly took from netdata add node assistant.  
docker run command works just fine but docker-compose doesn’t.  
Any help, it will be apreciated.  
Thanks,  
Jorge

---

<div class="post-metadata">

**Author:** ![Vali\_Dr](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/vali_dr/32/1121_2.png) [@Vali\_Dr](https://community.netdata.cloud/u/Vali_Dr)\
**Post date:** [September 5, 2021, 2:27am UTC](https://community.netdata.cloud/t/when-i-try-docker-compose-yml-it-fail/1663/2 "2021-09-05T02:27:47Z")

</div>

Take off the spaces before your “volumes:”
