version: "3.8"

services:

  romans:
    build:
      context: "."
      args:
        PHP_VERSION: "${PHP_VERSION:-7.4}"
    volumes:
    - ".:/app"
    user: "${UID:-1000}:${GID:-1000}"
    command: ["tail", "-f", "/dev/null"]

version: "3.8"

services:

  romans:
    build:
      context: "."
      args:
        PHP_VERSION: "${PHP_VERSION:-8.0}"
    volumes:
    - ".:/app"
    user: "${UID:-1000}:${GID:-1000}"
    command: ["tail", "-f", "/dev/null"]

Use PHP 8.0 as base build
Use PHP 8.0 as base build
