# Server install on AWS Lightsail

**URL:** <https://community.n8n.io/t/server-install-on-aws-lightsail/8355>\
**Category:** Questions\
**Tags:** deployment\
**Created:** [October 9, 2021, 11:49am UTC](https://community.n8n.io/t/server-install-on-aws-lightsail/8355 "2021-10-09T11:49:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![EugeneP](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/eugenep/32/7202_2.png) [@EugeneP](https://community.n8n.io/u/EugeneP)\
**Post date:** [October 9, 2021, 11:49am UTC](https://community.n8n.io/t/server-install-on-aws-lightsail/8355/1 "2021-10-09T11:49:29Z")

</div>

Hello all

As a person that knows nothing about Docker, I follow these instructions step by step [Server Setup | Docs](https://docs.n8n.io/getting-started/installation/advanced/server-setup.html)

However, I do not know where in the file system to place the `docker-compose.yml` and `.env` files. The above documentation says nothing about the directories they should be placed into and their permissions.

Thanks so much.

---

<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:** [October 9, 2021, 11:56am UTC](https://community.n8n.io/t/server-install-on-aws-lightsail/8355/2 "2021-10-09T11:56:42Z")

</div>

You can pop the files in any directory you want, just make sure the .env file is in the same folder as your compose file.

I have an n8n user that I use and I put the files in that users home directory but it is all down to personal preference really.

---

<div class="post-metadata">

**Author:** ![zocket](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/zocket/32/8068_2.png) [@zocket](https://community.n8n.io/u/zocket)\
**Post date:** [October 9, 2021, 1:37pm UTC](https://community.n8n.io/t/server-install-on-aws-lightsail/8355/3 "2021-10-09T13:37:44Z")

</div>

how do you edit your .env and yml files. I try using enter or backspace for new line but it doesn’t work for me

---

<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:** [October 9, 2021, 1:43pm UTC](https://community.n8n.io/t/server-install-on-aws-lightsail/8355/4 "2021-10-09T13:43:35Z")

</div>

I just use a text editor like nano or vim but it all depends on what you have available. What editor are you using?

---

<div class="post-metadata">

**Author:** ![zocket](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/zocket/32/8068_2.png) [@zocket](https://community.n8n.io/u/zocket)\
**Post date:** [October 9, 2021, 1:44pm UTC](https://community.n8n.io/t/server-install-on-aws-lightsail/8355/5 "2021-10-09T13:44:52Z")

</div>

i use vim in putty. when editing like clicking ‘Enter’ to get to a new line it doesn’t work

---

<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:** [October 9, 2021, 2:20pm UTC](https://community.n8n.io/t/server-install-on-aws-lightsail/8355/6 "2021-10-09T14:20:30Z")

</div>

Press insert / i first and make sure on the bottom left it says Insert, once your change is made press the escape key then input :wq to save and close the file.

Or try using nano if it is available it is an easier editor to use.

---

<div class="post-metadata">

**Author:** ![EugeneP](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/eugenep/32/7202_2.png) [@EugeneP](https://community.n8n.io/u/EugeneP)\
**Post date:** [October 9, 2021, 2:34pm UTC](https://community.n8n.io/t/server-install-on-aws-lightsail/8355/7 "2021-10-09T14:34:03Z")

</div>

Thanks so much @Jon. Are there any specific file permissions I should be aware of?

---

<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:** [October 9, 2021, 2:36pm UTC](https://community.n8n.io/t/server-install-on-aws-lightsail/8355/8 "2021-10-09T14:36:06Z")

</div>

None that I can think of.

---

<div class="post-metadata">

**Author:** ![zocket](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/zocket/32/8068_2.png) [@zocket](https://community.n8n.io/u/zocket)\
**Post date:** [October 9, 2021, 2:38pm UTC](https://community.n8n.io/t/server-install-on-aws-lightsail/8355/9 "2021-10-09T14:38:47Z")

</div>

Thanks @Jon I’ll try that
