# New Docker-Compose.yml Incorrect and Causing Issues

**URL:** <https://community.n8n.io/t/new-docker-compose-yml-incorrect-and-causing-issues/30078>\
**Category:** Feedback\
**Tags:** deployment\
**Created:** [September 3, 2023, 4:41am UTC](https://community.n8n.io/t/new-docker-compose-yml-incorrect-and-causing-issues/30078 "2023-09-03T04:41:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudy0](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rudy0/32/29298_2.png) [@rudy0](https://community.n8n.io/u/rudy0)\
**Post date:** [September 3, 2023, 4:41am UTC](https://community.n8n.io/t/new-docker-compose-yml-incorrect-and-causing-issues/30078/1 "2023-09-03T04:41:19Z")

</div>

The new instructions for installing n8n on ubuntu with Docker Compose .yml file is incorrect. it contains 2 spaces before “volumes:  
traefik\_data:  
external: true  
n8n\_data:  
external: true”

This causes an additional property error with docker-compose.

Also it would help for newer users to include:  
sudo usermod -aG docker $USER  
newgrp docker

before the step “docker volume create n8n\_data  
docker volume create traefik\_data”

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [September 4, 2023, 7:28am UTC](https://community.n8n.io/t/new-docker-compose-yml-incorrect-and-causing-issues/30078/2 "2023-09-04T07:28:17Z")

</div>

Hey @rudy0,

Welcome to the community 🍰

This will be fixed shortly, I didn’t get a chance on Friday to update it. The usermod is there as an optional step as it not required but what I have got saved locally is to use `sudo` before the volume creation.

---

<div class="post-metadata">

**Author:** ![rudy0](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rudy0/32/29298_2.png) [@rudy0](https://community.n8n.io/u/rudy0)\
**Post date:** [September 5, 2023, 9:59pm UTC](https://community.n8n.io/t/new-docker-compose-yml-incorrect-and-causing-issues/30078/3 "2023-09-05T21:59:47Z")

</div>

Confirmed everything working as intended!
