The easy environment for Dummies Supported Systems
- MacOs (Intel, Apple M1)
- Linux (AMD64, ARM64)
- Windows via WSL2 (AMD64)
MacOs
Install Docker for Mac: https://docs.docker.com/desktop/mac/install/
Linux
Install Docker Engine: https://docs.docker.com/engine/install/ubuntu/
Install Docker Compose https://docs.docker.com/compose/install/
Windows
Follow this guide: https://docs.docker.com/desktop/windows/wsl/
Install Homebrew by following guide https://docs.brew.sh/Installation
You need to export COMPOSE_PROJECT_COMPOSER_AUTH variable s othat Composer can use credentials inside containers
export COMPOSE_PROJECT_COMPOSER_AUTH='{
"http-basic": {
"repo.example.com": {
"username": "xxxxxxxxxxxx",
"password": "yyyyyyyyyyyy"
}
},
"github-oauth": {
"github.com": "xxxxxxxxxxxx"
}
}'Optionally you can add this row to your
~/.bashrcor~/.zshrc
Install the formula via homebrew
brew install digitalspacestdio/docker-compose-akeneo3/docker-compose-akeneo3- Create the new projet directory
mkdir ~/akeneo3- Navigate to the projet directory
cd ~/akeneo3- Create the new project
docker-compose-akeneo3 composer create-project akeneo/pim-community-standard /var/www "3.2.*@stable"- Install dependencies
docker-compose-akeneo3 composer install --optimize-autoloader --prefer-dist --no-interaction
docker-compose-akeneo3 yarn install- Install frontend
docker-compose-akeneo3 bin/console cache:clear --no-warmup --env=prod
docker-compose-akeneo3 bin/console pim:installer:assets --symlink --clean --env=prod- Install application
docker-compose-akeneo3 bin/console pim:install --force --symlink --clean --env=prod
docker-compose-akeneo3 yarn run webpack- Start the stack in the background mode
docker-compose-akeneo3 up -dApplication will be available by following link: http://localhost:30380/
- Clone the project source code
git clone https://github.com/youcompanyname/akeneo3.git ~/akeneo3- navigate to the project dir
cd ~/akeneo3- Install dependencies
docker-compose-akeneo3 composer install --optimize-autoloader --prefer-dist --no-interaction
docker-compose-akeneo3 yarn install- Import database dump (supports
*.sqland*.sql.gzfiles)
docker-compose-akeneo3 database-import /path/to/dump.sql.gz- Install frontend
docker-compose-akeneo3 bin/console cache:clear --no-warmup --env=prod
docker-compose-akeneo3 bin/console pim:installer:assets --symlink --clean --env=prod- Install application
docker-compose-akeneo3 yarn run webpack- Start the stack in the background mode
docker-compose-akeneo3 up -dApplication will be available by following link: http://localhost:30380/
Stop containers
docker-compose-akeneo3 downDestroy containers and persistent data
docker-compose-akeneo3 down -vConnecting to the mysql container
docker-compose-akeneo3 mysqlConnecting to the cli container
docker-compose-akeneo3 bashGenerate compose config and run directly without this tool
docker-compose-akeneo3 config > docker-compose.ymldocker compose upCan be stored in the
.dockenv,.dockerenvor.envfile in the project root
COMPOSE_PROJECT_MODE- (mutagen|default)COMPOSE_PROJECT_COMPOSER_VERSION- (1|2)COMPOSE_PROJECT_PHP_VERSION- (7.2), the image will be built from a correspondingfpm-alpineimage, see https://hub.docker.com/_/php/?tab=tags&page=1&name=fpm-alpine&ordering=name for more versionsCOMPOSE_PROJECT_NODE_VERSION- (12.22.8) the image will be built from a correspondingalpineimage, see https://hub.docker.com/_/node/tags?page=1&name=alpine3.16 for more versionsCOMPOSE_PROJECT_MYSQL_IMAGE-biarms/mysql:5.7.33-beta-circlecisee https://hub.docker.com/r/biarms/mysql/tags for more versionsCOMPOSE_PROJECT_ELASTICSEARCH_VERSION-6.5.4see https://www.docker.elastic.co/r/elasticsearch/elasticsearch-oss for more versionsCOMPOSE_PROJECT_NAME- by default the working directory name will be usedCOMPOSE_PROJECT_PORT_PREFIX-303by defaultCOMPOSE_PROJECT_PORT_HTTP-$COMPOSE_PROJECT_PORT_PREFIX+80by defaultCOMPOSE_PROJECT_PORT_XHGUI-$COMPOSE_PROJECT_PORT_PREFIX+81by defaultCOMPOSE_PROJECT_PORT_MYSQL-$COMPOSE_PROJECT_PORT_PREFIX+06by defaultCOMPOSE_PROJECT_PORT_ELASTICSEARCH-$COMPOSE_PROJECT_PORT_PREFIX+92by defaultCOMPOSE_PROJECT_PORT_MAIL_WEBGUI-$COMPOSE_PROJECT_PORT_PREFIX+25by default
In first you need to define the environment variable XDEBUG_MODE
export XDEBUG_MODE=debugor container specific
export XDEBUG_MODE_FPM=debug
export XDEBUG_MODE_CLI=debug
export XDEBUG_MODE_CRON=debugVisual Studio Code launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"hostname": "0.0.0.0",
"port": 9003,
"pathMappings": {
"/var/www": "${fileWorkspaceFolder}"
}
}
]
}