What is it for?
WordPress runs more than 40% of websites. Themes, plugins, a visual editor: build a blog, a showcase site or a shop without writing code.
Who is it for?
People who want a customisable site or blog without coding.
After installing
- Open the site address: installing WordPress takes 2 minutes.
- Install a security plugin and turn on automatic plugin updates.
The docker-compose
Example behind Traefik. To adapt it (Nginx Proxy Manager, local port…) with a line-by-line explanation, use the generator (in French).
# docker-compose.yml : WordPress
services:
wordpress:
image: wordpress:latest
container_name: wordpress
restart: unless-stopped
depends_on:
- db
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: "${DB_PASSWORD}"
WORDPRESS_DB_NAME: wordpress
TZ: Europe/Paris
volumes:
- ./html:/var/www/html
networks:
- traefik
- default
labels:
- traefik.enable=true
- traefik.http.routers.wordpress.rule=Host(`blog.mydomain.com`)
- traefik.http.routers.wordpress.entrypoints=websecure
- traefik.http.routers.wordpress.tls.certresolver=letsencrypt
- traefik.http.services.wordpress.loadbalancer.server.port=80
- traefik.docker.network=traefik
db:
image: mariadb:11
container_name: wordpress-db
restart: unless-stopped
environment:
MARIADB_DATABASE: wordpress
MARIADB_USER: wordpress
MARIADB_PASSWORD: "${DB_PASSWORD}"
MARIADB_RANDOM_ROOT_PASSWORD: "1"
volumes:
- ./db:/var/lib/mysql
networks:
traefik:
external: true