init: wordpress

This commit is contained in:
starnakin 2023-10-05 10:23:50 -04:00
parent d012f6db49
commit 36cd412775
2 changed files with 26 additions and 0 deletions

View File

@ -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
View 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"]