Comments (1)
Hey! Nice to hear.
Sure, it's easy.
- Remove
composer.json
,composer.lock
and thevendor
folder. Also empty theweb
folder - If not using SSL. Remove
- '443:443'
fromdocker-compose.yml
- You can also use a simple nginx config like this:
listen 80;
root /var/www/html/web/wp;
index index.php;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
client_max_body_size 100M;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass wordpress:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
- Start
docker compose up
- In a separate tab - download a standard WordPress installation using
docker exec -it myapp-wordpress bash
and
wp core download --allow-root
- Visit http://127.0.0.1/
from wordpress-nginx-docker-compose.
Related Issues (20)
- Redis Object Cache HOT 1
- Nginx doesn't work properly HOT 5
- Composer exited with code 0 HOT 2
- Unable to upload media HOT 2
- Site Working very slow HOT 2
- The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) HOT 3
- Mailhog not working HOT 3
- exec format error HOT 1
- Run `wp-cli` commands as a part of Docker setup
- Your site could not complete a loopback request HOT 4
- phpMyAdmin Username:Password HOT 2
- .env not created inside src HOT 1
- Error 500 on post,page creation HOT 1
- Update vlucas/phpdotenv to ^5.4 HOT 3
- Performance on M1 Apple MacBook Pro HOT 2
- WordPress & PHP versions HOT 1
- wp-cli HOT 1
- Unable to update/install theme or plugin HOT 2
- PHP 8.1 update for Sage10 HOT 5
- not working in linux HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-nginx-docker-compose.