diff --git a/README.md b/README.md index d7f8946..dee2db0 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,17 @@ Run: `sudo docker run --name=noip -d -v /etc/localtime:/etc/localtime -v /config/dir/path:/config coppit/no-ip` +To check the status, run `docker logs noip`. + +Docker-compose: + +`docker-compose up -d` + +To check the status, run `docker-compose logs`. + When run for the first time, a file named noip.conf will be created in the config dir, and the container will exit. Edit this file, adding your username (email), password, and domains. Then rerun the command. On subsequent runs, a binary config file /config/dir/path/no-ip2.generated.conf will be generated. Please do not edit this file, as it is used by the noip2 agent. -To check the status, run `docker logs noip`. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..bda15b8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3' + +services: + noip: + build: . + volumes: + - .:/config + restart: always +