Compare commits
7 Commits
5603c82c43
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 33c04c720f | |||
| c3c5306854 | |||
| 164a5c0b6a | |||
| 5be664886f | |||
|
|
b6399b9c08 | ||
|
|
b764e859d2 | ||
|
|
739ade8d34 |
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.env
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.env
|
||||||
7
wordpress/Dockerfile
Normal file
7
wordpress/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Dockerfile
|
||||||
|
FROM wordpress:5.1.1-fpm-alpine
|
||||||
|
|
||||||
|
RUN apk update \
|
||||||
|
&& apk add --no-cache ca-certificates curl \
|
||||||
|
&& update-ca-certificates \
|
||||||
|
&& ln -sf /etc/ssl/certs/ca-certificates.crt /etc/ssl/cert.pem
|
||||||
42
wordpress/docker-compose.yml
Normal file
42
wordpress/docker-compose.yml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: mysql:8.0
|
||||||
|
container_name: db
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file: .env
|
||||||
|
environment:
|
||||||
|
- MYSQL_DATABASE=wordpress
|
||||||
|
volumes:
|
||||||
|
- dbdata:/var/lib/mysql
|
||||||
|
command: '--default-authentication-plugin=mysql_native_password'
|
||||||
|
networks:
|
||||||
|
- app-network
|
||||||
|
|
||||||
|
wordpress:
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
image: wordpress:latest
|
||||||
|
container_name: wordpress
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file: .env
|
||||||
|
environment:
|
||||||
|
- WORDPRESS_DB_HOST=db:3306
|
||||||
|
- WORDPRESS_DB_USER=${MYSQL_USER}
|
||||||
|
- WORDPRESS_DB_PASSWORD=${MYSQL_PASSWORD}
|
||||||
|
- WORDPRESS_DB_NAME=wordpress
|
||||||
|
ports:
|
||||||
|
- "8080:80" # expose Apache to host
|
||||||
|
volumes:
|
||||||
|
- wordpress:/var/www/html
|
||||||
|
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
|
||||||
|
networks:
|
||||||
|
- app-network
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
dbdata:
|
||||||
|
wordpress:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
app-network:
|
||||||
22
wordpress/nginx.conf
Normal file
22
wordpress/nginx.conf
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
server {
|
||||||
|
listen 8080;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
root /var/www/html;
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_pass wordpress:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /\.ht {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
}
|
||||||
5
wordpress/uploads.ini
Normal file
5
wordpress/uploads.ini
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
upload_max_filesize = 400M
|
||||||
|
post_max_size = 400M
|
||||||
|
memory_limit = 512M
|
||||||
|
max_execution_time = 600
|
||||||
|
max_input_time = 600
|
||||||
Reference in New Issue
Block a user