This project is a simple DDNS client that updates an A record in Google Cloud DNS every 5 minutes using Node.js and Docker.
- Node.js
- Docker
- Docker Compose
- A Google Cloud account with DNS management permissions and a service account with a JSON key
git clone https://github.com/your-username/ddns-client.git
cd ddns-client
Copy the .env.example file to .env and fill in the necessary values:
cp .env.example .env
Place the JSON file of the service account in the project directory. Then, update the .env file to include the keys from the JSON file:
Make sure you have Node.js installed and run the following command to install project dependencies:
npm install
Use Docker Compose to build and deploy the container:
docker-compose up --build -d