A simple docker container for PHP application development and production
Create docker network for container. I don't use default network, because I can't configure it so much.
docker network create -d bridge main-network
Edit "development.yml" or "production.yml" file. You can change any configuration you want like port, volume and network if you want. Don't forget to change your volume binding.
Run and up. Use "development.yml" or "production.yml" as you need.
docker compose -f development.yml up -d