cerebrate/docker
Sami Mokaddem 55ded175a9 chg: [docker:readme] Updated PHP version 2024-09-25 15:19:50 +02:00
..
etc dockerfile and configuration 2021-10-25 15:46:47 +02:00
Dockerfile
README.md chg: [docker:readme] Updated PHP version 2024-09-25 15:19:50 +02:00
docker-compose.yml chg: migrate mysql.sql initial schema to a phinx migration 2022-01-07 14:37:04 +01:00
entrypoint.sh
wait-for-it.sh

README.md

Actual data and volumes

The actual database will be located in ./run/database exposed with the following volume - ./run/database:/var/lib/mysql

Application logs (CakePHP / Cerebrate) will be stored in ./run/logs, volume - ./run/logs:/var/www/html/logs

You're free to change those parameters if you're using Swarm, Kubernetes or your favorite config management tool to deploy this stack

Building yourself

You can create the following Makefile in basedir of this repository and issue make image

COMPOSER_VERSION?=2.1.5
PHP_VERSION?=8.2
DEBIAN_RELEASE?=buster
IMAGE_NAME?=cerebrate:latest

image:
	docker build -t $(IMAGE_NAME) \
		-f docker/Dockerfile \
		--build-arg COMPOSER_VERSION=$(COMPOSER_VERSION) \
		--build-arg PHP_VERSION=$(PHP_VERSION) \
		--build-arg DEBIAN_RELEASE=$(DEBIAN_RELEASE) \
		.