Sign inSign up

jhoncytech/buster-apache-symfony

By jhoncytech

•Updated over 4 years ago

Special image for development with symfony tools included

Image
0

971

jhoncytech/buster-apache-symfony repository overview

Header Logo

⁠Quick reference

  • Maintained by: Jhoncy Tech - JhonnyGO
⁠Pull command

$ docker pull jhoncytech/buster-apache-symfony

⁠Features

This image will help you start any development project with a base structure and symfony tools included.
With this structure you get:

⁠Tools, software and packages used
  • Debian 10 -Buster
  • Apache2
  • PHP-FPM 8
  • NVM - Node - npm CLI
  • Composer
  • AWS CLI
  • Mysql CLI
  • Kubectl
  • Minikube
  • Symfony CLI
  • Docker
  • Docker Compose
  • Yarn

⁠How to use this image.

⁠With Dockerfile
⁠Create a public folder for your project
> mkdir public-html
⁠Create a Dockerfile in your project
FROM jhoncytech/buster-apache-symfony

COPY ./public-html/ /var/www/html/

USER admin

RUN mkdir /var/www/html/public && echo "Test" >> public/index.php

USER root

CMD bash -c "/etc/init.d/php8.0-fpm start && apachectl -DFOREGROUND"

Then, run the follow commands inside the root folder to build and run the Docker image:

> docker build -t my-web .
> docker run -dit --name my-web-app -p 8077:80 my-web

Visit http://localhost:8077⁠ and you will see It works!

⁠Without a Dockerfile

If you don't want to include a Dockerfile in your project, it is sufficient to do the following:

CONTAINER WITH LINUX OS
> docker run -dit --name my-web-app -p 8077:80 -v "$PWD":/var/www/html/ jhoncytech/buster-apache-symfony
CONTAINER WITH WINDOWS OS
> docker run -dit --name my-web-app -p 8077:80 -v C:\absolute\path\to\your\windows\folder:/var/www/html/ jhoncytech/buster-apache

EXAMPLE WITH WINDOWS OS
> docker run -dit --name my-web-app -p 8077:80 -v C:\Users\Usuario\Documents\Docker-test\public-html:/var/www/html/ jhoncytech/buster-apache

⁠Contacts

- Mail: [email protected]
- Web: https://jhoncytech.com
---
- Mail: [email protected]
- Web: https://jhonnygo.com
Header Logo

Tag summary

Content type

Image

Digest

Size

574.8 MB

Last updated

over 4 years ago

docker pull jhoncytech/buster-apache-symfony