Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edyan/docker-apache
Simple Apache container to connect to an FPM Service.
https://github.com/edyan/docker-apache
apache docker-image
Last synced: 8 days ago
JSON representation
Simple Apache container to connect to an FPM Service.
- Host: GitHub
- URL: https://github.com/edyan/docker-apache
- Owner: edyan
- Created: 2016-06-27T12:48:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-03T17:06:58.000Z (over 5 years ago)
- Last Synced: 2024-10-11T03:51:53.451Z (25 days ago)
- Topics: apache, docker-image
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/edyan/apache/
- Size: 20.5 KB
- Stars: 13
- Watchers: 9
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Layers](https://images.microbadger.com/badges/image/edyan/apache.svg)](https://microbadger.com/images/edyan/apache "Get your own image badge on microbadger.com")
[![Docker Pulls](https://img.shields.io/docker/pulls/edyan/apache.svg)](https://hub.docker.com/r/edyan/apache/)# Apache Docker Image for PHP FPM
Docker Hub: https://hub.docker.com/r/edyan/apacheDocker container containing Apache that connects to an FPM service.
## Usage
Add the following to your docker-compose.yml, assuming that your PHP VM is named `php`
(see [edyan/php](https://github.com/edyan/docker-php)).```yaml
apache:
image: edyan/apache:2.2
volumes:
- ./www:/var/www
ports:
- 80:80
```## Environment variables
Two variables have been created, to override the user and group that owns Apache (and all its files).
That's useful if you need to mount a volume and own the files.These environment variables are `APACHE_UID` and `APACHE_GID`.
## Order of .htaccess
You can override an `.htaccess` file by putting an `.htaccess.local`, which could be interesting if you have to keep the main file in a git repository.## Apache version
To use a specific Apache version, append the version number to the image name.
Eg: `image: edyan/apache:2.4-slim`The following Apache versions are available:
* Apache 2.4-slim (Alpine 3)
* Apache 2.4 (buster stable)
* Apache 2.2 (wheezy stable / EOL as we need now to do some strange tricks to make it work)