# Need help in setting up metafresh on docker

**URL:** <https://forum.metasfresh.org/t/need-help-in-setting-up-metafresh-on-docker/2006>\
**Category:** Setup\
**Created:** [March 19, 2021, 7:42pm UTC](https://forum.metasfresh.org/t/need-help-in-setting-up-metafresh-on-docker/2006 "2021-03-19T19:42:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharath\_Konanur](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/sharath_konanur/32/818_2.png) [@Sharath\_Konanur](https://forum.metasfresh.org/u/Sharath_Konanur)\
**Post date:** [March 19, 2021, 7:42pm UTC](https://forum.metasfresh.org/t/need-help-in-setting-up-metafresh-on-docker/2006/1 "2021-03-19T19:42:26Z")

</div>

I am new to metasfresh. I have installed the docker successfully and cloned the docker compose file.

I am in the 2nd step and need some help setting the the docker host and editing the docker compose.yml file as per your instructions. How do i edit this file and what externally available hostname i can put. I have it installed on my local PC,

Comment out and replace `http://example.com:8080` with an externally available hostname and port of the docker host.

`vi ./metasfresh-docker/docker-compose.yml`

```auto
...
#environment:
 #- WEBAPI_URL=http://example.com:8080
...

```

> **Note:** Port `:8080` is only necessary if another port should be used as port 80.  
> See also: [How do I change the WebUI ports for metasfresh-Docker?](https://docs.metasfresh.org/installation_collection/EN/How_do_I_change_the_webui_ports_for_metasfresh_docker)

---

<div class="post-metadata">

**Author:** ![Sharath\_Konanur](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/sharath_konanur/32/818_2.png) [@Sharath\_Konanur](https://forum.metasfresh.org/u/Sharath_Konanur)\
**Post date:** [March 19, 2021, 7:57pm UTC](https://forum.metasfresh.org/t/need-help-in-setting-up-metafresh-on-docker/2006/2 "2021-03-19T19:57:37Z")

</div>

It looks like while i was trying to edit the docker-compose.yml I accidentally deleted all the entries I had cloned. Now I cannot clone for the second time as the directory already exists. Need help to reverse the clone step and redo. then I need help to do the second step of install

Any help provided will be greatly appreciated,

---

<div class="post-metadata">

**Author:** ![LukeSkywalker](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/lukeskywalker/32/836_2.png) [@LukeSkywalker](https://forum.metasfresh.org/u/LukeSkywalker)\
**Post date:** [May 15, 2021, 11:04am UTC](https://forum.metasfresh.org/t/need-help-in-setting-up-metafresh-on-docker/2006/3 "2021-05-15T11:04:46Z")

</div>

The clone step simply creates a folder with the name of the repository in the directory you executed the command.  
Just delete the created folder. I would highly recommend to be familiar with git, docker and docker-compose before setting up such a stack in production yourself.
