This is a sample application which creates a pimcore5 docker container. Have fun!
The pimcore5 image is available on dockerhub: https://hub.docker.com/r/tobee/pimcore5/
- Change usernames and passwords in
./env. - Delete the
./web/src/folder - Execute
./pimcore_init.shto download and extract latest pimcore version to./web/src. - Execute:
docker-compose --project-name pimcore5sample up --buildto start the containers. - Òpen
http://0.0.0.0/andhttp://0.0.0.0/adminwith your browser and enter the credentials according to./env.
- After building the containers, open
./envand setPIMCORE_INSTALL_FROM_SCRATCH=0. - Use the
docker-compose.ymlfile to use continuous integration/gitlab-runner. This file will only rebuild the containers if thedbcontainer is not available. See./build_container.shto get more information. - Uncomment
volumesin:docker-compose.ymlto map some folders to your host system. - Don't forget to backup important folders and the database.
See available containers:
docker ps
Open the container's bash:
docker exec -it <container-id> bash
docker exec -it <container-id> ping google.com
Show log files:
docker logs <container-id> -f