init: wordpress
This commit is contained in:
parent
d012f6db49
commit
36cd412775
@ -4,3 +4,14 @@ services:
|
|||||||
build: nginx
|
build: nginx
|
||||||
ports:
|
ports:
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
volumes:
|
||||||
|
- wordpress:/var/www/wordpress
|
||||||
|
|
||||||
|
wordpress:
|
||||||
|
image: wordpress
|
||||||
|
build: wordpress
|
||||||
|
volumes:
|
||||||
|
- wordpress:/var/www/wordpress
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
wordpress:
|
||||||
|
15
srcs/wordpress/Dockerfile
Normal file
15
srcs/wordpress/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
FROM alpine:3.17
|
||||||
|
|
||||||
|
RUN apk update
|
||||||
|
|
||||||
|
RUN apk add mysql-client php php-fpm php-mysqli
|
||||||
|
|
||||||
|
RUN mkdir -p /var/www/
|
||||||
|
WORKDIR /var/www/
|
||||||
|
RUN wget https://wordpress.org/latest.tar.gz
|
||||||
|
RUN tar -xzf latest.tar.gz
|
||||||
|
RUN rm latest.tar.gz
|
||||||
|
|
||||||
|
RUN sed -i "s/^listen.*/listen = 9000/" /etc/php81/php-fpm.d/www.conf
|
||||||
|
|
||||||
|
ENTRYPOINT ["php-fpm81", "-F"]
|
Loading…
Reference in New Issue
Block a user