Add docker image to support Apache rewrites and PSQL

This commit is contained in:
Bofh 2021-11-26 01:03:07 +01:00
parent ff33fd7bcf
commit 49016345da
2 changed files with 7 additions and 1 deletions

View File

@ -19,7 +19,7 @@ services:
web:
restart: always
image: php:8.0-apache
build: docker
environment:
- ENV=dev # if not set, production mode is ON
volumes:

6
docker/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM php:8.0-apache
RUN apt-get update && apt-get install -y libpq-dev
RUN docker-php-ext-install pdo pdo_pgsql pgsql
RUN a2enmod rewrite