Update: Docker files

This commit is contained in:
root 2023-03-28 14:27:18 +00:00
parent ac9731c481
commit db151257d2
2 changed files with 35 additions and 3 deletions

View File

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

32
docker-compose.yml Normal file
View File

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