I am new to docker. I have setup a few standalone images but want to setup some a dns sever adguard on a redundant setup. I am running two raspery pi i have docker setup on both and swarm is running. I have one manager and a worker. I have able to get adguard up and running but it is only on the default vlan.
I am not sure how to get the service on correct wire.
Physical switch setup
Native not tagged 10.1.40.0/24
Addguard VLAN 172.16.5.0/24
This is my compose file I used the cmd
sudo docker stack deploy --compose-file adguard.yml adguard
The error i get is
container_name: Setting the container name is not supported.
Creating network adguard_vlan_5
Creating service adguard_adguard
failed to create service adguard_adguard: Error response from daemon: The network adguard_vlan_5 cannot be used with services. Only networks scoped to the swarm can be used, such as those created with the overlay driver.
version: "3.6"
services:
adguard:
image: adguard/adguardhome:latest
container_name: adguard
networks:
vlan_5:
ipv4_address: 172.16.5.16
ports:
- 53:53/udp
- 53:53/tcp
- 67:67/udp
- 68:68/udp
- 80:80/tcp
- 443:443/tcp
- 443:443/udp
- 3000:3003/tcp
- 784:784/tcp
- 853:853/udp
- 8853:8852/udp
- 5443:5443/tcp
- 5443:5443/udp
networks:
vlan_5:
driver: macvlan
driver_opts:
parent: eth0.5
ipam:
driver: default
config:
- subnet: 172.16.5.0/24