Jump to content

Attaching a docker container to multiple docker networks


Sivivatu

Recommended Posts

In my unraid environment i have multiple networks for internal and external applications. There are some containers that i want to have access to both of those networks (eg Authentik & Traefik)

Am I able to have a container appear in both networks?

In docker compose that would be an equilivant of:
 

```

networks:

  front:

    external: true

  back:

    external: true

 

services:

  application:

    image: example/image

    networks:

    - front

    - back

```

 

Cheers

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...