Web application template built upon
Activate your development environment by creating a config file
.env for Docker Compose.
This setting will load and merge
docker-compose.dev.yml with the default configuration.
cp .env-dist .env
💡It is also recommended to create an environment config for the application under
src/modules/local.env, this file can be used later to change environment settings during development.
Build your images
vendor packages for development on the host-system (eg. for auto-completion and debugging)
docker-compose run --rm php composer install
Before starting the stack, we run a one-off command to do the initial setup of the application.
❗️There are defaults for setting up an admin user and adding demo-data to the application, you can customize these settings
docker-compose run --rm php yii app/setup
When the initial setup is complete, you can start the application stack with
docker-compose up -d
You can access the application now in your browser (replace
docker.local with the IP of your Docker host)
And login with
💡By default, all pages, actions, routes, etc. including frontend and backend modules are only available after authentication.
For details about package installation, custom application source-code, code generation, database migrations, testing, content management, deployment ... Continue with the quick start tutorial.