psugrg-web / silly-damp

Very basic (or even silly) approach to Docker based LAMP (Linux Apache Mysql PHP)
Apache License 2.0
0 stars 0 forks source link

Silly Docker-based LAMP (Linux Apache Mysql PHP)

Very basic approach that's primarily designed to act as a snippet for simple development.

Usage

[!IMPORTANT]

  • Create .env file with configuration in the ./app directory. You can use .env.example file as a starting point. Just use cp .env.example .env.
  • Optionally[^1] export UID to expose the user id as an environmental variable by calling export 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.

Notes

Inspiration