There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

HAMSHAMA

@[email protected]

This profile is from a federated server and may be incomplete. Browse more on the original instance.

[Question] Best way to set up docker containers that depend on other container

Hi guys! I have several docker containers running on my home server set up with separated compose files for each of them, including a Pihole one that serves as my home DNS. I created a network for it and a fixed IP but I couldn’t find a way to set fixed IPs to the other containers that use the Pihole network. Well everything...

HAMSHAMA ,

Hello, I think you would prefer to connect via internal dns names rather than static IPs. I have a slightly similar setup with docker compose creating a network for my apps.

Docker compose that creates the network: github.com/HugoKlepsch/…/docker-compose.yaml

Here I run my app and set the hostname. Note this app is on two docker networks, but for access from nginx it is on the “reverse_proxy” network: github.com/HugoKlepsch/…/docker-compose.yaml#L21

This compose is running nginx as a reverse proxy for my local apps. It uses the reverse proxy network: github.com/HugoKlepsch/…/docker-compose.yaml#L4

Here is a configuration file where I tell nginx where to find one of my apps on the reverse proxy docker network. Note the name references the name of the app and the docker network: github.com/HugoKlepsch/reverse-proxy/…/buzz.conf#…

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines