Sign inSign up

ralf02/lamp

By ralf02

•Updated almost 7 years ago

LINUX (Debian 9) + APACHE + MYSQL + PHP7

Image
0

10K+

ralf02/lamp repository overview

⁠LAMP

LINUX (Debian 9) + APACHE + MYSQL + PHP7

⁠Usage
⁠Dockerfile
FROM ralf02/lamp:php7.2

MAINTAINER ralf02

RUN apt update && apt install -y supervisor

ADD ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf

RUN echo 'root:Qwerty123' | chpasswd
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config

EXPOSE 80
EXPOSE 22

CMD ["usr/bin/supervisord"]
⁠supervisord.conf
[supervisord]
nodaemon=true

[program:mysqlx]
command=/bin/sh -c "exec /etc/init.d/mysql start"

[program:apache]
command=/bin/sh -c "exec /etc/init.d/apache2 start"

[program:ssh]
command=/bin/sh -c "exec /etc/init.d/ssh start"

[progra:php7.2x]
command=/bin/sh -c "/etc/init.d/php7.2-fpm start"
⁠Docker run
docker run -d --name lamp-dev -p 8080:80 -p 8022:22 ralf02/lamp:latest
⁠Access by SFTP
sftp://[email protected]:8022/

⁠Built With

  • sudo docker build -t ralf02/lamp:latest .
  • CRON,OPENSSH,VIM,GIT, PHP7.2,APACHE2, MySql
  • User mysql 'newuser' with pass 'qwerty123'
  • User root with pass 'Qwerty123'

Tag summary

Content type

Image

Digest

Size

509.7 MB

Last updated

almost 7 years ago

docker pull ralf02/lamp