Skip to content
Snippets Groups Projects
Commit 2de04605 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

add php 7.2 and 7.3 as options

parent 1b9b2561
No related branches found
No related tags found
No related merge requests found
......@@ -10,14 +10,6 @@ location ^~ /trunk {
include nginx-php.conf;
}
location ^~ /uol-5.1 {
alias /var/www/html/studip/uol/5.1/public;
index index.php index.html index.html;
set $site_document_root /var/www/html/studip/uol/5.1/public;
include nginx-php.conf;
}
location ^~ /5.0 {
alias /var/www/html/studip/5.0/public;
index index.php index.html index.html;
......@@ -61,3 +53,19 @@ location ^~ /uol-5.4 {
set $site_document_root /var/www/html/studip/uol/5.4/public;
include nginx-php.conf;
}
location ^~ /uol-5.1 {
alias /var/www/html/studip/uol/5.1/public;
index index.php index.html index.html;
set $site_document_root /var/www/html/studip/uol/5.1/public;
include nginx-php.conf;
}
location ^~ /peoe-4.6 {
alias /var/www/html/studip/uol/peoe-4.6/public;
index index.php index.html index.html;
set $site_document_root /var/www/html/studip/uol/peoe-4.6/public;
include nginx-php.conf;
}
......@@ -13,6 +13,12 @@ upstream php82_backend {
upstream php83_backend {
server php83:9000;
}
upstream php72_backend {
server php72:9000;
}
upstream php73_backend {
server php73:9000;
}
server {
listen 80 default_server;
......@@ -63,3 +69,23 @@ server {
include sites.conf;
}
server {
listen 88 default_server;
server_name _;
root /var/www/html;
set $fastcgi_backend php72_backend;
include sites.conf;
}
server {
listen 89 default_server;
server_name _;
root /var/www/html;
set $fastcgi_backend php73_backend;
include sites.conf;
}
......@@ -9,6 +9,8 @@ services:
- "8081:82"
- "8082:83"
- "8083:84"
- "8072:88"
- "8073:89"
networks:
- code-network
volumes:
......@@ -48,6 +50,14 @@ services:
<<: *base-php
build:
dockerfile: php/8.3-Dockerfile
php72:
<<: *base-php
build:
dockerfile: php/7.2-Dockerfile
php73:
<<: *base-php
build:
dockerfile: php/7.3-Dockerfile
networks:
code-network:
......
docker compose up --build
FROM php:7.2-fpm
# Install system requirements
RUN apt update && apt install -y --no-install-recommends \
default-mysql-client \
default-libmysqlclient-dev \
libcurl4-openssl-dev zlib1g-dev \
libjpeg-dev \
libpng-dev \
libpq-dev \
libwebp-dev \
libonig-dev \
libzip-dev \
libicu-dev \
libfreetype6-dev \
vim \
&& rm -rf /var/lib/apt/lists/*
# Install php extensions
RUN docker-php-ext-configure gd --with-jpeg-dir --with-freetype-dir --with-webp-dir
RUN docker-php-ext-install -j$(nproc) gettext curl gd mbstring zip pdo pdo_mysql pdo_pgsql mysqli intl json
# Install php-soap
RUN apt update \
&& apt install -y libxml2-dev \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install soap
# Install de_DE locale
RUN apt update \
&& apt install -y --no-install-recommends locales \
&& locale-gen de_DE \
&& update-locale \
&& rm -rf /var/lib/apt/lists/*
# Install Memcached
RUN apt update \
&& apt install -y git libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \
&& rm -rf /var/lib/apt/lists/* \
&& pecl install memcached \
&& docker-php-ext-enable memcached
# Install redis
RUN pecl install redis \
&& docker-php-ext-enable redis
FROM php:7.3-fpm
# Install system requirements
RUN apt update && apt install -y --no-install-recommends \
default-mysql-client \
default-libmysqlclient-dev \
libcurl4-openssl-dev zlib1g-dev \
libjpeg-dev \
libpng-dev \
libpq-dev \
libwebp-dev \
libonig-dev \
libzip-dev \
libicu-dev \
libfreetype6-dev \
vim \
&& rm -rf /var/lib/apt/lists/*
# Install php extensions
RUN docker-php-ext-configure gd --with-jpeg-dir --with-freetype-dir --with-webp-dir
RUN docker-php-ext-install -j$(nproc) gettext curl gd mbstring zip pdo pdo_mysql pdo_pgsql mysqli intl json
# Install php-soap
RUN apt update \
&& apt install -y libxml2-dev \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install soap
# Install de_DE locale
RUN apt update \
&& apt install -y --no-install-recommends locales \
&& locale-gen de_DE \
&& update-locale \
&& rm -rf /var/lib/apt/lists/*
# Install Memcached
RUN apt update \
&& apt install -y git libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \
&& rm -rf /var/lib/apt/lists/* \
&& pecl install memcached \
&& docker-php-ext-enable memcached
# Install redis
RUN pecl install redis \
&& docker-php-ext-enable redis
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment