diff --git a/Dockerfile b/Dockerfile index cd5c2ee..f50605a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,5 +21,5 @@ COPY ansible/update-dns.yaml ansible COPY entrypoint.sh . RUN chmod +x entrypoint.sh -ENTRYPOINT [ "entrypoint.sh" ] +ENTRYPOINT [ "/netcup-dns/entrypoint.sh" ] CMD [ "crond", "-f" ] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..30484d8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: '2' +services: + netcup-dyndns: + container_name: netcup-dyndns + network_mode: "host" + environment: + SCHEDULE: "*/10 * * * *" + DOMAIN: "example.com" + MODE: "@ *" + IPV4: "yes" + IPV6: "yes" + CUSTOMER_ID: ${CUSTOMER_ID} + API_KEY: ${API_KEY} + API_PASSWORD: ${API_PASSWORD} + TZ: "Europe/Berlin" + restart: unless-stopped + image: ghcr.io/lightlike/netcup-dyndns:latest