Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/accgit/docker
:whale: Setting docker for php server.
https://github.com/accgit/docker
Last synced: about 2 months ago
JSON representation
:whale: Setting docker for php server.
- Host: GitHub
- URL: https://github.com/accgit/docker
- Owner: accgit
- Created: 2019-06-26T09:35:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-27T05:39:08.000Z (almost 2 years ago)
- Last Synced: 2024-08-07T10:23:51.200Z (5 months ago)
- Language: Dockerfile
- Homepage:
- Size: 44.2 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Docker PHP
Docker configuration for your own server.## Docker ldap for PHP
```
RUN apt install libldap2-dev -y
RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/
RUN docker-php-ext-install ldap
```## Docker intl for PHP
```
RUN apt -y update \
&& apt install -y libicu-dev \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl
```## Docker gd for PHP
```
RUN apt install libfreetype6-dev libjpeg62-turbo-dev libpng-dev -y
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
RUN docker-php-ext-install gd
```# Docker php configuration for apache
```
COPY conf/php.ini /usr/local/etc/php/conf.d
```# Docker generate certificate for server
Add configure ssl for apache
```
RUN a2enmod ssl
RUN apt install -y ca-certificates
```# Docker copy certificate to container
```
COPY cert/* /etc/apache2/ssl/
```The ports in Dockerfile:
```
EXPOSE 80 443
```The ports in docker-compose.yml:
```
php:
ports:
- 443:443
```Apache configuration ssl:
```
COPY conf/000-default.conf /etc/apache2/sites-available/
```