From a54af89854bc0f68f1dd986318fe931eb4034194 Mon Sep 17 00:00:00 2001 From: Ingmar Stein Date: Mon, 21 Oct 2024 20:56:56 +0200 Subject: [PATCH] Update docker-compose.yml and docs for Compose V2 See https://docs.docker.com/compose/releases/migrate/: Compose V2 was released in 2020 and V1 stopped receiving updates in July 2023. The main difference in usage is that the Compose spec doesn't use the `version` top-level element and `compose` is now a subcommand of `docker` instead of a standalone program called `docker-compose`. --- build.md | 6 +++--- docker-compose.yml | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/build.md b/build.md index 7501a43f..bb90e4b6 100644 --- a/build.md +++ b/build.md @@ -80,7 +80,7 @@ echo "nameserver 127.0.0.1" | sudo tee /etc/resolv.conf Note! Skip this step if you have already installed the DNS server as a systemd service in previous step. -Note! Before proceeding to build a docker image, it is required that you have installed `docker` and `docker-compose` on your computer. +Note! Before proceeding to build a Docker image, it is required that you have installed `docker` on your computer. Follow the commands given below to build a docker image for the DNS server. @@ -89,12 +89,12 @@ cd DnsServer sudo docker build -t technitium/dns-server:latest . ``` -You can now run the image that you have build using docker-compose as shown below. You should edit the `docker-compose.yml` file if you wish to edit the container's configuration before running it. +You can now run the image that you have built using `docker compose` as shown below. You should edit the `docker-compose.yml` file if you wish to edit the container's configuration before running it. ``` sudo systemctl stop systemd-resolved sudo systemctl disable systemd-resolved -sudo docker-compose up -d +sudo docker compose up -d ``` 9. Open the DNS server web console in a web browser using `http://:5380/` URL and set a login password to complete the installation. diff --git a/docker-compose.yml b/docker-compose.yml index 49b7d4d9..dfdbfce4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: "3" services: dns-server: container_name: dns-server