Very basic approach that's primarily designed to act as a snippet for simple development.
[!IMPORTANT]
- Create
.env
file with configuration in the./app
directory. You can use.env.example
file as a starting point. Just usecp .env.example .env
.- Optionally[^1] export
UID
to expose the user id as an environmental variable by callingexport UID=${UID}
[^2].
Run the following command to compile and run the complete suite
docker compose build && docker compose up -d
[!TIP]
Navigate to localhost:8080 in your browser to access the application, and localhost:8081 to access phpMyAdmin.
[^1]: Default UID
, set by the .env
file will be used if this step is not performed.
[^2]: This should be done even if there's an automatic Bash UID
read only variable present since it is ignored by the docker.