Straightforward Docker setup for Pimcore. Current configuration: Nginx:alpine, PHP:7.4.15-fpm, MySQL:5.7.22, Portainer:latest and PHPMyAdmin:latest.
git clone https://github.com/Frame05/Pimdock.git
docker-compose pull
docker-compose build app
- repeat previous step as long as pecl install throws:
Package "package_name" Version "package_version" does not have REST dependency information available
orPackage "package_name" Version "package_version" does not have REST xml available
docker-compose up -d
docker exec -u ${APP_USER} -it APP_CONTAINER_ID /bin/bash
- if pimcore project does not exist in
/webroot
:cd /var/www
COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/skeleton ${APP_NAME}
cd /var/www/${APP_NAME}
PIMCORE_INSTALL_ADMIN_USERNAME=${APP_USER} PIMCORE_INSTALL_ADMIN_PASSWORD=${APP_PASSWORD} PIMCORE_INSTALL_MYSQL_USERNAME=${MYSQL_USER} PIMCORE_INSTALL_MYSQL_PASSWORD=${MYSQL_PASSWORD} PIMCORE_ENVIRONMENT=${APP_ENV} ./vendor/bin/pimcore-install --mysql-host-socket ${MYSQL_HOST} --mysql-port ${MYSQL_PORT} --mysql-database ${MYSQL_DATABASE} --no-interaction
chown -R ${APP_USER}:webmasters /var
setfacl -dR -m u:${APP_USER}:rwX -m g:webmasters:rwX /var
setfacl -R -m u:${APP_USER}:rwX -m g:webmasters:rwX /var
- enjoy.