Update: Docker files
This commit is contained in:
parent
ac9731c481
commit
db151257d2
@ -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
32
docker-compose.yml
Normal 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"
|
Loading…
Reference in New Issue
Block a user