# הגדר רשת docker מותאמת אישית בקובץ container/app.yml

**URL:** <https://meta.discourse.org/t/set-custom-docker-network-in-container-app-yml/200701>\
**Category:** Self-hosting\
**Created:** [17 באוגוסט,‏ 2021,‏ 10:55am UTC](https://meta.discourse.org/t/set-custom-docker-network-in-container-app-yml/200701 "2021-08-17T10:55:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![BHamidpour](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bhamidpour/32/231253_2.png) [@BHamidpour](https://meta.discourse.org/u/BHamidpour)\
**Post date:** [17 באוגוסט,‏ 2021,‏ 10:55am UTC](https://meta.discourse.org/t/set-custom-docker-network-in-container-app-yml/200701/1 "2021-08-17T10:55:54Z")

</div>

Hello There,

How I can add a custom docker network block like the below sample to my discourse conf file (container/app.yml)?  
I want the discourse container to connect to “my-network” after ./launch rebuild and running.

```plaintext
## this is the all-in-one, standalone Discourse Docker container template
##
## After making changes to this file, you MUST rebuild
## /var/discourse/launcher rebuild app
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
## visit http://www.yamllint.com/ to validate this file as needed

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"

....

## Any custom commands to run after building
run:
  - exec: echo "Beginning of custom commands"
  ## If you want to set the 'From' email address for your first registration, uncomment and change:
  ## After getting the first signup email, re-comment the line. It only needs to run once.
  #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
  - exec: echo "End of custom commands"

networks:
   my-network:
     external: true

```

network block:

```plaintext
networks:
   my-network:
     external: true

```

---

_[View the full topic](https://meta.discourse.org/t/set-custom-docker-network-in-container-app-yml/200701)._
