Hello All,
I have a question. I am trying to setup a docker compose to use two separate networks.
Specifically Authentik.
This is the first container I’ve tried this on but could be wrong.
Essentially what I want to do is have the following:
postgressql:
networks:
- backend
redis:
networks:
- backend
server:
networks:
- backend
- vlan16
worker:
networks:
- backend
networks:
backend:
external: true
vlan16:
external: true
Ive also tried this way
postgressql:
networks:
backend:
redis:
networks:
backend:
server:
networks:
vlan16:
ipv4_address: 10.0.16.120
backend:
worker:
networks:
backend:
networks:
backend:
name: 'backend'
driver: bridge
vlan16:
name: 'vlan16'
driver: 'macvlan'
I cant get either them to work the way I want them. If remove the network portion and let docker create their own, I can join the vlan and access it but if I build it into the compose I cant access the container.
Confused as to what I’m doing wrong.
Its probably something stupid but I figured I would ask