sudo apt-get install docker docker-compose ========================================================================================================================
sudo docker-compose uphostfaile prisideti192.168.0.2 example.com(Jei nenaudojamas dnsmasq!)
Localhost nebetinka nes pats konteineris kreipiantis i l.com veda i savo localhost o ne i tavo kompa, todel neprisijngia ir buna connection refused.
pvz naudojant getimagesize() gausi Connection refused error'a
========================================================================================================================
sudo docker pssudo docker stop <CONTAINER_ID>sudo docker rm <CONTAINER_ID>
========================================================================================================================
example.com:8025
========================================================================================================================
MYSQL_LOCALHOST=db
MYSQL_ROOT_PASSWORD=devdb
MYSQL_DATABASE=devdb
MYSQL_USER=devdb
MYSQL_PASSWORD=devdb
========================================================================================================================
sudo ../scripts/docker-bash.sh dbcd var/lib/mysql
========================================================================================================================
sudo ../scripts/docker-bash.sh php
========================================================================================================================
sudo chmod 777 db/- isikelt backupa i
db/aplanka sudo ../scripts/docker-bash.sh dbcd var/lib/mysql
========================================================================================================================
- Host: mailhog
- Port: 1025
- Nuimt authentifikacija
- Protocol: none
========================================================================================================================
sudo apt-get install dnsmasqEdit the file /etc/NetworkManager/NetworkManager.conf, and add the line dns=dnsmasq to the [main] section.
Example:
[main]
plugins=ifupdown,keyfile
dns=dnsmasq
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
Backup original file:
sudo mv /etc/resolv.conf /etc/resolv.conf.backCreate the simlink of resolv.conf:
sudo ln -s /var/run/NetworkManager/resolv.conf /etc/resolv.confCreate the configuration file in /etc/NetworkManager/dnsmasq.d/ and add configuration to it address=/[domain]/[IP]
Example:
echo 'address=/.loc/192.168.0.91' | sudo tee /etc/NetworkManager/dnsmasq.d/loc-wildcard.confIt will redirects all reques from *.loc to 192.168.0.91
sudo systemctl reload NetworkManager