Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pointybeard/ubuntu_lnmp_docker_vagrant
An Ubuntu 20.04LTS LNMP stack on Docker and Vagrant.
https://github.com/pointybeard/ubuntu_lnmp_docker_vagrant
Last synced: 9 days ago
JSON representation
An Ubuntu 20.04LTS LNMP stack on Docker and Vagrant.
- Host: GitHub
- URL: https://github.com/pointybeard/ubuntu_lnmp_docker_vagrant
- Owner: pointybeard
- License: other
- Created: 2022-01-18T03:39:07.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-28T01:17:01.000Z (almost 3 years ago)
- Last Synced: 2024-10-12T06:21:06.564Z (about 1 month ago)
- Language: Shell
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ubuntu 20.04LTS LNMP Stack on Docker and Vagrant
This is a complete Ubuntu 20.04LTS LNMP stack built on a cominbation of Docker and Vagrant that is suitable for running on Apple M1 based computers.
- [Ubuntu 20.04LTS LNMP Stack on Docker and Vagrant](#ubuntu-2004lts-lnmp-stack-on-docker-and-vagrant)
- [Requirements](#requirements)
- [Installation](#installation)
- [Post Installation Tips](#post-installation-tips)
- [MariaDB/MySQL](#mariadbmysql)
- [Credits](#credits)
- [License](#license)## Requirements
- Docker Desktop ()
- Vagrant ()## Installation
vagrant up --provider=docker
## Post Installation Tips
See [Server Build Guide: Ubuntu (20.04LTS) LNMP/LAMP](https://gist.github.com/pointybeard/bf33095f93ce3bcc8567849166d8bd11) for generally helpful information.
### MariaDB/MySQL
Allow connection as MySQL root user from outside VM
- Remove old record in ~/.ssh/known_hosts on host machine
- Add ~/.ssh/id_rsa.pub to authorized_keys on vagrant box
- Open up /etc/mysql/mariadb.conf.d/50-server.cnf and comment out lines for skip-external-locking & bind-address
- Run following SQL as root (mysql -u root -p):```
CREATE USER 'root'@'localhost' IDENTIFIED BY 'root';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;
CREATE USER 'root'@'%' IDENTIFIED BY 'root';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password USING PASSWORD('root');
FLUSH PRIVILEGES;
```- Restart MySQL service with `sudo service mysql restart`
## Credits
- [John Rofrano](https://medium.com/nerd-for-tech/developing-on-apple-m1-silicon-with-virtual-environments-4f5f0765fd2f) for their article and Dockerfile which got the ball rolling.
- [Alannah Kearney](https://github.com/pointybeard)
- [All Contributors](../../contributors)## License
"Ubuntu 20.04LTS LNMP Stack on Docker and Vagrant" is released under the [MIT License](http://www.opensource.org/licenses/MIT).