PHP Docker images with Apache to use directly or as a boilerplate for other projects.
| PHP Version | Image |
|---|---|
| 8.3 | spaleks/php-apache:php8.3 |
| 8.2 | spaleks/php-apache:php8.2 |
| 8.1 | spaleks/php-apache:php8.1 |
| 8.0 | spaleks/php-apache:php8.0 |
| 7.4 | spaleks/php-apache:php7.4 |
The apache entry point is under: /var/www/html/public
version: "3.9"
services:
app:
image: spaleks/php-apache:php8.3
container_name: php-app
platform: linux/amd64
ports:
- "50083:80"
volumes:
- ./src:/var/www/html
# Or if you do not need a higher level
# You can mount the apache entry point directly
# - ./src:/var/www/html/public
environment:
DB_HOST: db
DB_PORT: 3306
DB_DATABASE: example
DB_USERNAME: root
DB_PASSWORD: root
Content type
Image
Digest
sha256:be7cd638e…
Size
367 MB
Last updated
21 days ago
docker pull spaleks/php-apache:php8.3