diff --git a/srcs/docker-compose.yml b/srcs/docker-compose.yml index c509fde..c88a3ad 100644 --- a/srcs/docker-compose.yml +++ b/srcs/docker-compose.yml @@ -4,3 +4,14 @@ services: build: nginx ports: - "443:443" + volumes: + - wordpress:/var/www/wordpress + + wordpress: + image: wordpress + build: wordpress + volumes: + - wordpress:/var/www/wordpress + +volumes: + wordpress: diff --git a/srcs/wordpress/Dockerfile b/srcs/wordpress/Dockerfile new file mode 100644 index 0000000..4673036 --- /dev/null +++ b/srcs/wordpress/Dockerfile @@ -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"]