From ca8f6c19e745c88ed8dff1a7dd4d1aa560502f18 Mon Sep 17 00:00:00 2001 From: LMtx Date: Thu, 2 Aug 2018 22:58:48 +0200 Subject: [PATCH] docker-compose added --- README.md | 9 ++++++++- docker-compose.yml | 9 +++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml 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 +