yobasystems / alpine-php-wordpress Goto Github PK
View Code? Open in Web Editor NEWWordpress running on Alpine Linux [Docker]
Home Page: https://hub.docker.com/r/yobasystems/alpine-php-wordpress/
Wordpress running on Alpine Linux [Docker]
Home Page: https://hub.docker.com/r/yobasystems/alpine-php-wordpress/
Is it expected behavior to have the envs cleared from php-fpm pools, since I see in the php-fpm.conf that the database variables are being set implying that they are being forwarded, but are cleared either way.
i test your stack on a docker swarm cluster behind traefik. before october everything was fine.
new update returns a curl6 error. wordpress admin seems slow using redis
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
compress = true
[entryPoints.http.redirect]
entryPoint = "https"
regex = "^http://localhost/(.*)"
replacement = "http://mydomain.com/$1"
permanent = true
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[[entryPoints.https.tls.certificates]]
certFile = "/etc/traefik/certs/mydomain.com.crt"
keyFile = "/etc/traefik/certs/mydomain.com.key"
docker service create -d --name loadbalancer
--restart-condition any
--replicas 1
--update-delay 2s
--constraint=node.role==manager
--publish 80:80
--publish 443:443
--publish 9090:8080
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock
--mount type=bind,source=/mnt/efs/traefik/certs,target=/etc/traefik/certs
--mount type=bind,source=/mnt/efs/traefik/traefik.toml,target=/etc/traefik/traefik.toml
--network net
iloveuodi/traefik:v1.7.4-alpine
--docker
--docker.swarmmode
--docker.watch
--web
--loglevel=DEBUG
docker service create -d --name wordpress
--hostname wordpress
--limit-cpu 0.000
--limit-memory 170M
--reserve-memory 30M
--restart-condition any
--replicas 1
--update-delay 2s
--update-parallelism 1
--update-failure-action continue
--restart-max-attempts 1
--constraint=node.role==worker
--publish 8080:80
--label="traefik.frontend.headers.STSSeconds=15768000"
--label="traefik.docker.network=net"
--label="traefik.port=80"
--label="traefik.frontend.rule=PathPrefix:/"
--label="traefik.backend.loadbalancer.sticky=true"
--mount type=bind,source=/mnt/efs/data/v1/html,target=/usr/html
-e VIRTUAL_HOST=mydomain.com,www.mydomain.com
--network net
iloveuodi/alpine-php-wordpress:cache
do you have any plan to add nginx pagespeed support for wordpress using wp super cache plugin??
... which leads to an error
if somebody wanna run this image behind a loadbalancer like traefik 1.7.5 and backed by a swarm cluster:
create a overlay network like below:
docker network create
--driver overlay
--subnet 10.0.9.0/24
--gateway 10.0.9.254
net
deploy traefik following:
docker service create -d --name loadbalancer
--restart-condition any
--replicas 1
--update-delay 2s
--constraint=node.role==manager
--publish 80:80
--publish 443:443
--publish 9090:8080
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock
--mount type=bind,source=/mnt/efs/traefik/certs,target=/etc/traefik/certs
--mount type=bind,source=/mnt/efs/traefik/traefik.toml,target=/etc/traefik/traefik.toml
--network net
traefik:latest
--docker
--docker.swarmmode
--docker.watch
--web
--loglevel=DEBUG
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
permanent = true
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[[entryPoints.https.tls.certificates]]
certFile = "/etc/traefik/certs/domain.com.crt"
keyFile = "/etc/traefik/certs/domain.com.key"
deploy yobasystems/alpine-php-wordpress under same overlay network "net"
thanks dominic create this wonderful image
everything very modular and beginner friendly
with this base image you can handle 100-150 concurrent user
with pagespeed, varnish, wp supercache (8000-8500) concurrent in a single EC2
working on it
i will publish a optimized image based on this image using pagespeed,varnish,wp supercache
define('FORCE_SSL_ADMIN', true);
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
otherwise your site will be loaded without style css and js
PS:
can i just install varnish 5 using:
apk add varnish
can i add:
varnishd -f /etc/varnish/default.vcl -s malloc,64M -a 0.0.0.0:80
to /run.sh
expecting:
varnish,nginx, php-fpm will boot upon container startup based on your infra??
to do:
add wp supercache with pagespeed (working on it)
Thanks
i am running behinf traefik. iedit wp-config.php as you guys said running ubuntu 18.04
docker swarm.
after deploy your stack i got
Unable to reach WordPress.org at wordpress.org: cURL error 6: Could not resolve host: wordpress.org
what is the correct user ID and group ID I should use?
I tried this one:
The following user and group id are used, the files should be set to this: User ID: Group ID:
chown -R 100:101 /data/{domain}/html
E.G
chown -R 100:101 /data/yobasystems/html
it returned directory index of "/usr/html/" is forbidden.
then I tried set to my user ID which created the folder. failed as well.
using this git:
https://github.com/codecasts/php-alpine
or is there any way to update the php to the latest one or update nginx to mainline ??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.