Hi Forum - i really need u help
I just upgraded to OMV5 and thought i could update a couple docker container with it.
So my setup is that i have a bunch of container that i want to run through Traefik V2 and i want ALL my container to get and IP adr. from my router...
So here comes the trouble ..
Can that be done?
Basic info for my system
OMV5= 192.168.1.100
Subnet=1 92.168.1.0/24
gateway= 192.168.1.1
I have tried to create a macvlan docker network (called it DockerNet)
docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o parent=eno1 DockerNet
but when i compose (docker-compose up -d)
---------------------------------
docker-compose.yml file:
version: '3'
services:
traefik:
image: "traefik:v2.1"
container_name: "traefik"
hostname: "traefik"
env_file:
- .env
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "/sharedfolders/docker/config/traefikv2/traefik.yml:/traefik.yml:ro"
- "/sharedfolders/docker/config/traefikv2/acme.json:/acme.json"
labels:
- "traefik.enable=true"
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
## DNS CHALLENGE
# - "traefik.http.routers.traefik.tls.certresolver=lets-encr" # Not sure if this should be commented out
# - "traefik.http.routers.traefik.tls.domains[0].main=*.$MY_DOMAIN" # Not sure if this should be commented out
# - "traefik.http.routers.traefik.tls.domains[0].sans=$MY_DOMAIN" # Not sure if this should be commented out
## HTTP REDIRECT
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.redirect-https.rule=hostregexp(`{host:.+}`)"
- "traefik.http.routers.redirect-https.entrypoints=web"
- "traefik.http.routers.redirect-https.middlewares=redirect-to-https"
networks:
default:
external:
name: $DEFAULT_NETWORK
---------------------------------
.env file:
MY_DOMAIN=XXXXXXXXX
DEFAULT_NETWORK=DockerNet
And the last file:
---------------------------------
Traefik.yml file:
## STATIC CONFIGURATION
log:
level: DEBUG
api:
insecure: true
dashboard: true
entryPoints:
web:
address: ":80"
websecure:
address: ":443"
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
certificatesResolvers:
lets-encr:
acme:
storage: acme.json
email: XXXXXXXXXXXXXX
httpChallenge:
entryPoint: web
If i missed anything please reply/ write so i can provide
thanks in advise 