nvllsvm / linode-dynamic-dns

Dynamically set the IP of Linode DNS records
MIT License
12 stars 5 forks source link

Where locate log file in docker container #7

Open zzwxrchi opened 3 years ago

zzwxrchi commented 3 years ago

Where can I locate log file in docker container ?

Is still function in May 2021 with api linode ?

And linode tocken permissions to create ?
Access None Read Only Read/Write Account
Domains Events Images IPs Kubernetes Linodes Longview NodeBalancers Object Storage StackScripts Volumes

Thanks !!

zzwxrchi commented 3 years ago

I get.

########### In linode panel #########

  1. Create dominio or subDominio to manage his dynamic ip in https://cloud.linode.com/dashboard Example: drive.xxxxxx.com

  2. In MY PROFILE -> API Tokens -> Creat a Psersonal Acccess Token Label: Label Name Expiry: Never permissions -> only Domains: Read/Write Create Token -> copy token string

########### In local server pc #######

  1. Create: docker-compose file: vim docker-compose.yml

    file created with docker cmd in https://www.composerize.com/

    version: '3.3'
    services:
        linode-dynamic-dns:
            environment:
                - DOMAIN=xxxxxx.com
                - HOST=drive
                - TOKEN=token string
                - FREQUENCY=1440  #daily
            image: nvllsvm/linode-dynamic-dns
                    restart: always
  2. execute: sudo docker-compose up -d

  3. checked curl ipinfo.io/ip # get dinamic public ip in excute pc

    ping -c3 xxxxxx.com # check public ip of domain

    ping -c3 drive.xxxxxx.com # check public ip of subDomain drive