geerlingguy / internet-pi

Raspberry Pi config for all things Internet.
MIT License
4.21k stars 446 forks source link

Docker Compose file 'version' attribute is obsolete, apparently #606

Closed geerlingguy closed 1 month ago

geerlingguy commented 1 month ago

When running manual docker compose commands, I'm seeing messages like:

pi@geerli:~/pi-hole $ docker compose up -d --no-deps
WARN[0000] /home/pi/pi-hole/docker-compose.yml: `version` is obsolete 
WARN[0000] a network with name internet-monitoring-front-tier exists but was not created for project "pi-hole".
Set `external: true` to use an existing network 
network internet-monitoring-front-tier was found but has incorrect label com.docker.compose.network set to "internet-monitoring-front-tier"

I guess this is a recent-ish change to Docker Compose.

geerlingguy commented 1 month ago

Heh, loooong thread here on it: https://github.com/docker/compose/issues/11628

geerlingguy commented 1 month ago

For the network label issue, that's specific to the pi-hole docker-compose.yml, and the fix is to add external: true to the front-tier network inclusion if using a custom domain name. Fixing with patch momentarily...