Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| lamp_docker_container_with_adminer [05.11.2020 05:11] – [LAMP docker container with adminer] Pascal Suter | lamp_docker_container_with_adminer [05.11.2020 05:22] (current) – [The files needed] Pascal Suter | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| </ | </ | ||
| here are the contents of those files: | here are the contents of those files: | ||
| - | ==== Dockerfile ==== | ||
| <code bash Dockerfile> | <code bash Dockerfile> | ||
| FROM ubuntu: | FROM ubuntu: | ||
| Line 104: | Line 103: | ||
| <?php phpinfo(); ?> | <?php phpinfo(); ?> | ||
| </ | </ | ||
| + | |||
| + | ===== Usage ===== | ||
| + | now simply build the container using the '' | ||
| + | |||
| + | you can access the webserver via '' | ||
| + | |||
| + | the user '' | ||
| + | |||
| + | ===== customizations ===== | ||
| + | to set another default password upon the first start of the container, you can edit the line in '' | ||
| + | |||
| + | you can also start the container in detached mode (aka in the background) right away, edit the '' | ||
| + | |||
| + | as stated above, you can login to the container and then use apt to add additional tools and such. if you add a system service (like for example postgreSQL) you can't start it using '' | ||