Docker
The only requirement in this case is a working Docker setup!
Setup
$ cd .docker
# Bring up the application
$ docker compose up --build -d
# To enable the admin role, generate a password hash. Replace hackme with your own password
$ echo "LAMB_LOGIN_PASSWORD=$(docker exec -it lamb-app bash -c 'php make-password.php hackme')"
Your site is now ready at http://localhost
Uploaded images are stored under src/assets/ inside the app container.
Errors can be inspected with docker composer logs -f php.
Update Lamb
To refresh Docker Compose containers, you can follow these steps:
Build new images (if necessary): Pull the latest changes to the application code or Dockerfile, and rebuild the Docker images using the docker compose build command.
$ git pull
$ docker compose up --build -d
The -d flag is used to start the containers in the background (detached mode).
Known issues
- Codeception cannot be run from within the docker container