Wordpress Universal Docker Compose

This commit is contained in:
Siroco 2021-03-17 00:19:19 +01:00
parent bead024d7f
commit 830b7674e9
2 changed files with 1 additions and 34 deletions

View File

@ -3,7 +3,7 @@ FROM debian:buster-slim as build
RUN apt-get update && \ RUN apt-get update && \
apt-get -qy install \ apt-get -qy install \
php-fpm php-mysql php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip \ php-fpm php-mysql php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip \
sudo &&\ sudo wget curl ca-certificates&&\
apt-get clean apt-get clean
RUN useradd wordpress RUN useradd wordpress

View File

@ -1,33 +0,0 @@
version: '3'
volumes:
db:
data:
services:
db:
image: mariadb
restart: always
volumes:
- db:/var/lib/mysql
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_RANDOM_ROOT_PASSWORD: '1'
MYSQL_PASSWORD: wordpress
wordpress:
build: .
volumes:
- data:/app/wordpress
restart: always
nginx:
image: nginx:alpine
ports:
- 8180:80
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
volumes_from:
- wordpress
restart: always