This is general stack for the web development environment with preset Nginx, PHP, MariaDB & MongoDB
You can use this setup for multiple projects.
Put in your project under projects folder and set your nginx.conf there.
Projects\YOUR_PROJECT_FOLDER\nginx.conf
Please see the example project on how to configure your nginx.conf file projects/example
if you're using git for your projects. you can add that under projects folder using submodule command
cd projects
git submodule add -f [email protected]:hanafiah/example.git
make sure to set virtual host on hosts file
sudo vim /etc/hosts
- open notepad as administratio
- open hosts file located at
C:\Windows\System32\drivers\etc\hosts
add the following
127.0.0.1 www.example.local
once saved, you should be able to access site from
run the following command
git submodule update --init
run the following command inside your docker-general directory
docker-compose up -d
To stop
docker-compose stop
https://github.com/hanafiah/docker-webstack/wiki/How-to-use-composer
some driver might check for the processor for example MS SQL , currently M2 is not supported (err: Unsupported processor architecture.). To mitigate this issue, you can run docker service with emulate platform. for example
php8.2.fpm.mssql:
build: php-stack-8.2-fpm-mssql
container_name: "php8.2.fpm.mssql"
platform: linux/amd64