https://github.com/dpfaffenbauer/pimcore-docker-compose
Simple Docker-Compose Configuration for Pimcore 5
https://github.com/dpfaffenbauer/pimcore-docker-compose
docker docker-compose pimcore
Last synced: 9 months ago
JSON representation
Simple Docker-Compose Configuration for Pimcore 5
- Host: GitHub
- URL: https://github.com/dpfaffenbauer/pimcore-docker-compose
- Owner: dpfaffenbauer
- Created: 2017-07-27T08:59:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-05T12:47:33.000Z (about 5 years ago)
- Last Synced: 2025-04-13T15:45:51.168Z (about 1 year ago)
- Topics: docker, docker-compose, pimcore
- Size: 43.9 KB
- Stars: 76
- Watchers: 4
- Forks: 46
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker-Compose for Pimcore 5 and Pimcore 6
Simple and easy Docker-Compose configuration for Pimcore 5 and Pimcore 6.
Docker-Compose consists of the following images:
- Redis
- MariaDB 10.4
- httpd (Apache 2.4) & PHP-FPM with PHP7.2 and all Pimcore required dependencies (LibreOffice, FFMPEG, Image Libraries, etc)
- PHP-FPM with PHP7.2 and all Pimcore required dependencies (LibreOffice, Image Libraries, etc) (except FFMPEG)
## Getting Started
### Requirements
* git
* docker
* docker-compose
### Checkout Repo
```bash
git clone https://github.com/dpfaffenbauer/pimcore-docker-compose.git
cd pimcore-docker-compose/
```
### Run Containers
```bash
# initialize and startup containers
docker-compose up -d
```
### Install Pimcore
Choose which package to install
#### Pimcore 5
https://pimcore.com/docs/5.x/Development_Documentation/Getting_Started/Installation.html#page_Choose-a-package-to-install
#### Pimcore 6
https://pimcore.com/docs/6.x/Development_Documentation/Getting_Started/Installation.html#page_Choose-a-package-to-install
```bash
# get shell in running container
docker exec -it pimcore-php bash
# replace with the package you with to install
# for example COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/demo tmp
COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/ tmp
mv tmp/.[!.]* .
mv tmp/* .
rmdir tmp
#increase the memory_limit to >= 512MB as required by pimcore-install
echo 'memory_limit = 512M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini;
service apache2 reload
#run installer
./vendor/bin/pimcore-install --mysql-host-socket=db --mysql-username=pimcore --mysql-password=pimcore --mysql-database=pimcore
```
### Use
After the installer is finished, you can open in your Browser:
* Frontend: http://localhost:2000
* Backend: http://localhost:2000/admin
### Common Errors
#### File permissions
On some machines docker has problems with the relative symlinked (static) files. Run those commands in your `pimcore-php` container
```bash
docker-compose exec php bash
chown www-data: . -R
```
This could take a while because of the amount of files inside the directory (especially because of the `vendor` folder). There is no guarantee that those commands on all machines and operating systems.