Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,17 @@ You don't need to have a PHP environment with composer installed.
### Follow these steps

1. Initialize the demo project using the `pimcore/pimcore` image
``docker run --rm -v `pwd`:/var/www/html pimcore/pimcore:PHP8.0-fpm composer create-project pimcore/demo my-project``
1. Fix permissions of the created directory (we are already working on a fix to make this redundant)
`sudo chown -R 1000 my-project/`
``docker run -u `id -u`:`id -g` --rm -v `pwd`:/var/www/html pimcore/pimcore:PHP8.0-fpm composer create-project pimcore/demo my-project``
1. Go to your new project
`cd my-project/`
1. Part of the new project is a docker compose file. Use it to start the needed services
`docker-compose up -d`
1. Part of the new project is a docker compose file
* Run `` echo `id -u`:`id -g` `` to retrieve your local user and group id
* Open the `docker-compose.yml` file in an editor, uncomment all the `user: '1000:1000'` lines and update the ids if necessary
* Start the needed services with `docker-compose up -d`
1. Install pimcore and initialize the DB
`docker-compose exec php-fpm vendor/bin/pimcore-install --mysql-host-socket=db --mysql-username=pimcore --mysql-password=pimcore --mysql-database=pimcore`
* When asked for admin user and password: Choose freely
* This can take a while, up to 20 minutes
1. Fix permissions again, the installer has created new directories
`docker-compose run --rm php-fpm chown -R www-data:www-data var/*`
1. :heavy_check_mark: DONE - You can now visit your pimcore-demo:
* The frontend: <http://localhost>
* The admin interface, using the credentials you have chosen above:
Expand Down