# docker domain
reminder
---

1. docker internal host

2. mongodb dont expose port for container within same docker network(but if from outter or localhost then must be exposed)
=> within the same docker network, all containers can freely talk to each other.

## docker network
---
host: For standalone containers, isolation between container and host system is removed (i.e. they share localhost as a network)
| type | behavior | ps |
|:------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |:------- |
| host | For standalone containers, isolation between container and host system is removed (i.e. they share localhost as a network) | |
| bridge | Containers can find each other by name if they are in the same Network | default |
| overlay | Multiple Docker daemons (i.e. Docker running on different machines) are able to connect with each other. Only works in "Swarm" mode which is a dated / almost deprecated way of connecting multiple containers | |
| macvlan | You can set a custom MAC address to a container - this address can then be used for communication with that container | |
| none | All networking is disabled | |
| Third-party plugins | You can install third-party plugins which then may add all kinds of behaviors and functionalities | |
---------
easy web get_request
``` javascipt=
fetch('https://some-api.com/my-data').then(...)
```
###### tags: `docker`