forked from leftypol/leftypol
docker: downgrade to php 7.2 for leftypol
This commit is contained in:
parent
919a6d0d2f
commit
677a1e0210
2 changed files with 7 additions and 6 deletions
|
@ -7,7 +7,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "9091:80"
|
- "9091:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- leftypol-db
|
||||||
volumes:
|
volumes:
|
||||||
- ./local-www:/var/www/html
|
- ./local-www:/var/www/html
|
||||||
- ./docker/nginx/leftypol.conf:/etc/nginx/conf.d/default.conf
|
- ./docker/nginx/leftypol.conf:/etc/nginx/conf.d/default.conf
|
||||||
|
@ -29,7 +29,7 @@ services:
|
||||||
leftchan_net:
|
leftchan_net:
|
||||||
ipv4_address: 172.21.0.4
|
ipv4_address: 172.21.0.4
|
||||||
#MySQL Service
|
#MySQL Service
|
||||||
db:
|
leftypol-db:
|
||||||
image: mysql:8.0.35
|
image: mysql:8.0.35
|
||||||
container_name: leftypol-db
|
container_name: leftypol-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -38,7 +38,8 @@ services:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: vichan
|
MYSQL_DATABASE: vichan
|
||||||
MYSQL_ROOT_PASSWORD: test-database
|
MYSQL_ROOT_PASSWORD: password
|
||||||
|
command: "--default-authentication-plugin=mysql_native_password"
|
||||||
networks:
|
networks:
|
||||||
leftchan_net:
|
leftchan_net:
|
||||||
ipv4_address: 172.21.0.2
|
ipv4_address: 172.21.0.2
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Based on https://github.com/dead-guru/devichan/blob/master/php-fpm/Dockerfile
|
# Based on https://github.com/dead-guru/devichan/blob/master/php-fpm/Dockerfile
|
||||||
|
|
||||||
FROM composer AS composer
|
FROM composer AS composer
|
||||||
FROM php:8.1-fpm-alpine
|
FROM php:7.2-fpm-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
zlib \
|
zlib \
|
||||||
|
@ -32,8 +32,8 @@ RUN apk add --no-cache \
|
||||||
pcre-dev \
|
pcre-dev \
|
||||||
$PHPIZE_DEPS \
|
$PHPIZE_DEPS \
|
||||||
&& docker-php-ext-configure gd \
|
&& docker-php-ext-configure gd \
|
||||||
--with-webp=/usr/include/webp \
|
--with-webp-dir=/usr/include/webp \
|
||||||
--with-jpeg=/usr/include \
|
--with-jpeg-dir=/usr/include \
|
||||||
&& docker-php-ext-install -j$(nproc) \
|
&& docker-php-ext-install -j$(nproc) \
|
||||||
gd \
|
gd \
|
||||||
curl \
|
curl \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue