Sign inSign up

michellhenrique/devweb

By michellhenrique

•Updated about 6 years ago

Image
0

98

michellhenrique/devweb repository overview

⁠Web Server - LAMP

⁠Descrição:

Embora vá contra a ideia principal do projeto agrupar mais de um serviço em um mesmo container, isso acaba sendo um tanto quanto prático para o desenvolvimento e para outros serviços corriqueiros do dia a dia. Criei essa imagem com intuito de facilitar o meu desenvolvimento web (php + mysql) ficando fácil de instalar, inciar e parar o servidor de desenvolvimento. Compartilho o mesmo na esperança de quem sabe poder ajudar mais alguém...

⁠Description:

Although it goes against the main idea of the project to group more than one service in the same container, this ends up being somewhat practical for development and for other everyday services. I created this image in order to facilitate my web development (php + mysql) making it easy to install, start and stop the development server. I share the same in the hope of someone who knows how to help someone else ...

⁠Ubuntu 20.04

  • apache2 (ver 2.4.41)
  • php7.4 (ver 7.4.3)
  • php7.4-mysql (ver 7.4.3)
  • mariadb-server (10.3.22)

⁠Mariadb User

  • User: devweb
  • Pass: devweb123

⁠Changes:

/etc/mysql/mariadb.conf.d/50-server.cnf

  • bind-address = 0.0.0.0

⁠To install:

$sudo docker run -d --name container_name --hostname container_host -p 80:80 -p 3306:3306 -v /servidor/pasta_www:/var/www/html michellhenrique/devweb upservers

  • container_name - Container name
  • container_host - Container hostname
  • 80:80 - HTTP port
  • 3306:3306 - mariadb port
  • /servidor/pasta_www - Apache web folder
  • michellhenrique/webdev - repository
  • upservers - script to run apache and mariadb

⁠To start:

$sudo docker start container_name

⁠Exemplo / Example:

$sudo docker run -d --name devweb --hostname devweb -p 80:80 -p 3306:3306 -v /home/usuario/www:/var/www/html michellhenrique/devweb upservers

$sudo docker start devweb

Tag summary

Content type

Image

Digest

Size

133.5 MB

Last updated

about 6 years ago

docker pull michellhenrique/devweb