Application inside container runs under www-data:www-data
user.
sudo chown -R www-data:www-data data/
Create security key
docker compose -f docker-compose.prod.yml run --rm app sh -c "php bin/cake.php generate_security_key"
Create Database
docker compose -f docker-compose.prod.yml run --rm app sh -c "php bin/cake.php migrations migrate"
Start Application
docker compose -f docker-compose.dev.yml up -d
Requirements
- Docker or Docker Desktop
- Lando
- PHP 8.1 and up
- Node
- Yarn
lando start
lando composer install
lando php bin/cake.php migrations migrate
fnm install # to install node - optionally
yarn install
yarn build
Source codes for frontend are stored in webroot_src
, currently only styles which is slightly modified picocss.
templates/layout/default.php
. (not ideal but for now it is like it is).
Application build is located in webroot/app
.