ghostserverd / mediaserver-docker

Docker compose for comprehensive autonomous media server
253 stars 42 forks source link

Interface not found in /etc/wireguard #31

Closed patcfly closed 2 years ago

patcfly commented 2 years ago

I've created a wgnet0.conf file using the mullvad configuration page and placed in the suggested dir /some/dir/config/wireguard

I customized .env to my environment

I have set transmission and nzbget to use network_mode and have commented out the ports section of each service. network_mode: "service:wireguard" depends_on:

When I run docker-compose up, everything starts except for: wireguard, which causes both transmission and nzbget to fail as they cannot find their network adapter.

I pulled logs from the wiregaurd container docker logs --tail 50 --follow --timestamps 83062a4c8231 2022-01-20T03:12:30.503070380Z Thu Jan 20 03:12:30 UTC 2022: ---FATAL--- Interface not found in /etc/wireguard

Anything else I should look at configuring? I've been at this for two nights now.

Mixie-12 commented 2 years ago

Is sounds like there is an issue with your mount. Make sure your wireguard container has: volumes:

Also make sure the config file name is wg0.conf

patcfly commented 2 years ago

the docker-compose.yml file was looking for - /YOUR_CONFIG_DIR/wireguard:/etc/wireguardsu

wireguard is in /etc/wireguard so the dirs didn't match.

Thanks for helping me find the issue!