diff --git a/Dockerfile b/Dockerfile index 981fb01..c5c9e5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:buster-slim as build +FROM debian:bullseye-slim as build RUN apt-get update && \ apt-get -qy install \ @@ -8,7 +8,7 @@ RUN apt-get update && \ RUN useradd wordpress -COPY wordpress.conf /etc/php/7.3/fpm/pool.d/www.conf +COPY wordpress.conf /etc/php/7.4/fpm/pool.d/www.conf RUN mkdir /run/php/ #RUN mkdir logs @@ -38,5 +38,5 @@ RUN mv wp-cli.phar wp EXPOSE 9000 VOLUME /app/wordpress -CMD ["/usr/sbin/php-fpm7.3","--nodaemonize"]] +CMD ["/usr/sbin/php-fpm7.4","--nodaemonize"]] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0bbee68 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,32 @@ +version: '3' + +volumes: + db: + data: + +services: + db: + image: mariadb + restart: "no" + volumes: + - db:/var/lib/mysql + environment: + MYSQL_DATABASE: ahum_backend + MYSQL_USER: ahum_backend + MYSQL_RANDOM_ROOT_PASSWORD: '1' + MYSQL_PASSWORD: Bmu6SJCc8ztGScoC2sk4i + + wordpress: + build: . + volumes: + - data:/app/wordpress + restart: "no" + + nginx: + build: ./nginx/ + ports: + - 127.0.0.1:8180:443 + volumes: + - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro + - data:/app/wordpress + restart: "no"