services: app: build: context: . dockerfile: resources/docker/Dockerfile args: PHP_VERSION: ${PHP_VERSION:-8.1} UID: ${UID:-1000} GID: ${GID:-1000} # The tag carries the PHP version. With one shared tag, `docker compose up` # without `--build` starts the image of the version built last, under a # container name that names a different version. image: ${PROJECT_PREFIX:-code-quality}:${PHP_VERSION:-8.1} container_name: ${PROJECT_PREFIX:-code-quality}-${PHP_VERSION:-8.1} hostname: ${PROJECT_PREFIX:-code-quality}-${PHP_VERSION:-8.1} working_dir: /srv volumes: - .:/srv