Zend certified PHP/Magento developer

No internet connection after i restarted my server

I have an ubuntu droplet on www.digitalocean.com, after i changed a few lines of code in my application, i restarted the server, still have access to it through web console but no interfaces has founded, just docker0 and lo, can’t ping google even!!

here are my interfaces.d/50-cloud-init.cfg file configurations:
auto lo
iface lo inet loopback
dns-nameservers 8.8.8.8 8.8.4.4

auto eth0
iface eth0 inet static
    address 139.59.148.230
    gateway 138.59.144.1
    netmask 255.255.255.0
    172.17.0.1

# control-alias eth0
iface eth0 inet static
    address 10.135.0.1
    netmask 255.255.0.0

eth0 interface is not showing after ifconfig -a command, i got ens3, ens4, lo, docker0, so i changed the eth0 to one of these ens* but without avail.

I’ve tried also to assign the ip to the interface statically after restarting the networking service service networking restart, it throwing this error:

ifup[774]: /sbin/ifup: pre-up script failed
systemd[1]: networking.service Main process exited
systemd[1]: Failed to start Raise network interfaces