# Nextcloud-Docker connecting with ip address

**URL:** <https://help.nextcloud.com/t/nextcloud-docker-connecting-with-ip-address/47064>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** docker, ncp\
**Created:** [February 7, 2019, 7:50am UTC](https://help.nextcloud.com/t/nextcloud-docker-connecting-with-ip-address/47064 "2019-02-07T07:50:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adityas](https://help.nextcloud.com/letter_avatar/adityas/32/6_22734026db12803ebb3e059622ac3534.png) [@adityas](https://help.nextcloud.com/u/adityas)\
**Post date:** [February 7, 2019, 7:50am UTC](https://help.nextcloud.com/t/nextcloud-docker-connecting-with-ip-address/47064/1 "2019-02-07T07:50:36Z")

</div>

I installed nextcloud using docker with mariadb and now I want to connect it with other device outside localhost I tried by creating a user defined network but it says access denied. Now I want to find how to change the address in the config file in docker. Can anyone please help me out I am using apache as a service

---

<div class="post-metadata">

**Author:** ![Reiner\_Nippes](https://help.nextcloud.com/user_avatar/help.nextcloud.com/reiner_nippes/32/9479_2.png) [@Reiner\_Nippes](https://help.nextcloud.com/u/Reiner_Nippes)\
**Post date:** [February 7, 2019, 3:14pm UTC](https://help.nextcloud.com/t/nextcloud-docker-connecting-with-ip-address/47064/2 "2019-02-07T15:14:36Z")

</div>

would you mind to post your docker-compose file? or the docker run commands (without the password) you used to start the container?

> [@adityas](#):
>
> creating a user defined network

docker network? they are all docker internal unless you expose a port to the outside world with e.g. “-p 80:80” on the command line with docker run.

> [@adityas](#):
>
> config file in docker

if you are talking about …/nextcloud/config/config.php you have to map this to your hosts filesystem. otherwise it will get lost when you update the container. normally this is defined in the docker-compose file or the cli command.

---

<div class="post-metadata">

**Author:** ![adityas](https://help.nextcloud.com/letter_avatar/adityas/32/6_22734026db12803ebb3e059622ac3534.png) [@adityas](https://help.nextcloud.com/u/adityas)\
**Post date:** [February 11, 2019, 5:15am UTC](https://help.nextcloud.com/t/nextcloud-docker-connecting-with-ip-address/47064/3 "2019-02-11T05:15:24Z")

</div>

```auto
docker run -d -p 8080:80 --link database:database -e NEXTCLOUD_DB_PASSWORD=secret -e NEXTCLOUD_ADMIN_PASSWORD=secret nextcloud

```

Is this the way we try to implement docker using docker run command and could you please let me know can I use this \* NEXTCLOUD\_TRUSTED\_DOMAINS parameter in the same command so I don’t want to go and change it in the config file after installation.

And I could able to connect to docker using composer file thanks for the information.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 9:16am UTC](https://help.nextcloud.com/t/nextcloud-docker-connecting-with-ip-address/47064/4 "2024-12-04T09:16:46Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 2:24pm UTC](https://help.nextcloud.com/t/nextcloud-docker-connecting-with-ip-address/47064/5 "2024-12-11T14:24:02Z")

</div>


