# Nextcloud stack networking

**URL:** <https://forums.docker.com/t/nextcloud-stack-networking/103739>\
**Category:** Docker Hub\
**Tags:** ci\_cd\
**Created:** [January 29, 2021, 12:26pm UTC](https://forums.docker.com/t/nextcloud-stack-networking/103739 "2021-01-29T12:26:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjdw12](https://avatars.discourse-cdn.com/v4/letter/p/7bcc69/32.png) [@pjdw12](https://forums.docker.com/u/pjdw12)\
**Post date:** [January 29, 2021, 12:26pm UTC](https://forums.docker.com/t/nextcloud-stack-networking/103739/1 "2021-01-29T12:26:57Z")

</div>

I have docker on open media vault and busy with setting up nextcloud.  
Containers used are:

- nextcloud
- MariaDB
- Swag

I am strugling with my stack, especially the network part.  
Believe that by default containers attach to default bridge. When i deploy the stack no nextcloud @ it’s DNS address .  
Have created a user defined bridge an attached all containers manually to this bridge.  
Then I am up and running 🙂 !  
What can I do to attach all nextcloud containers by default to the user defined bridge?  
Or can I use the default bridge (with some tweaking)?

I did a lot of googling and tried all kind of solutions in my stack, but not succeed yet.

---

<div class="post-metadata">

**Author:** ![pjdw12](https://avatars.discourse-cdn.com/v4/letter/p/7bcc69/32.png) [@pjdw12](https://forums.docker.com/u/pjdw12)\
**Post date:** [February 2, 2021, 4:11pm UTC](https://forums.docker.com/t/nextcloud-stack-networking/103739/2 "2021-02-02T16:11:13Z")

</div>

After days of googling I finally discovered that when launching the yaml file in Portainer, no custom bridge is created. When I copy paste the code in a separate file an do a docker compose up -d , a custom network is created and containers are attached to this network.  
Why this NOT the case in Portainer I do not understand??  
My problem is solved (launch the stack via CLI), but I am still left with a question
