You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is intended to be a discussion point for how we can use Docker with Sculpin.
Primary concerns:
Delivering a stable experience for users
Handling complex site configurations, including possible multi-site configurations
handling complex installations, with required PHP extensions & custom sculpin kernel & many composer deps
My hope is that all of this could be solved with a very short Dockerfile that people can easily put in their projects. Ideally, with minimal required maintenance for both users & project maintainers.
The text was updated successfully, but these errors were encountered:
I just tried to dockerize Sculpin via the new semi-official "PHP-way" to dockerize apps:
composer create-project sculpin/blog-skeleton my-blog
cd my-blog
yarn install
composer sculpin-watch
Then run:
ln -s source public
composer require --dev phpexperts/dockerize
php vendor/phpexperts/dockerize/install.php
docker-compose up -d
Worked like a champ.
It literally took me less than 2 minutes to dockerize this app. I've been using phpexperts/dockerize on all of my projects. All you really have to do is ln -s your_web_root public and you're good to go! Maybe edit a few nginx rewrite rules in the provided docker/web/sites/001_default.conf. Works well with Kubernetes, too.
Of course, following the documentation on https://github.com/PHPExpertsInc/dockerize-php, I edited the the newly-created docker/web/sites/001_default.conf and disabled the listening to the PHP-FPM proxy for a pure static site.
This issue is intended to be a discussion point for how we can use Docker with Sculpin.
Primary concerns:
My hope is that all of this could be solved with a very short Dockerfile that people can easily put in their projects. Ideally, with minimal required maintenance for both users & project maintainers.
The text was updated successfully, but these errors were encountered: