Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luciangutu/coolify_php_demo
https://github.com/luciangutu/coolify_php_demo
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/luciangutu/coolify_php_demo
- Owner: luciangutu
- Created: 2024-09-06T16:50:59.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-06T16:54:23.000Z (2 months ago)
- Last Synced: 2024-09-06T20:03:20.467Z (2 months ago)
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Hello World with Docker
This project demonstrates a minimal setup for running a PHP-powered website using Docker. The PHP script simply outputs "Hello World!" using the built-in PHP web server.
## Prerequisites
- [Docker](https://www.docker.com/get-started) installed on your machine
## Project Structure
- **Dockerfile**: Defines the Docker image configuration.
- **index.php**: Simple PHP file that outputs "Hello World!".
- **README.md**: This file.## Setup Instructions
1. Build the Docker image:
```bash
docker build -t php-hello .
```2. Run the Docker container:
```bash
docker run -p 8000:8000 php-hello
```3. Open your browser and visit:
```
http://localhost:8000
```You should see the text **Hello World!** displayed on the page.