Wordpress, verified and packaged by Elestio
50K+
Wordpress is the free, open-source WordPress software that you can install on your own web host to create a website that’s 100% your own.
Deploy a fully managed wordpress on elest.io if you want automated backups, reverse proxy with SSL termination, firewall, automated OS & Software updates, and a team of Linux experts and open source enthusiasts to ensure your services are always safe, and functional.
Here are some example snippets to help you get started creating a container.
version: '3.3'
services:
redis:
image: 'redis:alpine'
ports:
- '172.17.0.1:6379:6379'
restart: always
volumes:
- ./redis_data:/data
database:
image: elestio/mysql:latest
volumes:
- ./db:/var/lib/mysql
restart: always
env_file:
- .env
environment:
MYSQL_DATABASE: blog_wp
command: '--default-authentication-plugin=mysql_native_password'
cap_add:
- SYS_NICE # CAP_SYS_NICE
networks:
- blog-network
wordpress:
depends_on:
- database
image: elestio/wordpress:${SOFTWARE_VERSION_TAG}
restart: always
user: "root:root"
dns:
- 8.8.8.8
ports:
- 172.17.0.1:9000:80
env_file:
- .env
environment:
- WORDPRESS_DB_HOST=database:3306
- WORDPRESS_DB_USER=${MYSQL_USER}
- WORDPRESS_DB_PASSWORD=${MYSQL_PASSWORD}
- WORDPRESS_DB_NAME=blog_wp
volumes:
- ./php.ini:/usr/local/etc/php/conf.d/custom.ini
- ./wordpress:/var/www/html
networks:
- blog-network
phpmyadmin:
image: phpmyadmin
restart: always
depends_on:
- database
environment:
- PMA_HOST=database
- PMA_PORT=3306
- PMA_USER=wpdbuser
- PMA_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_USERNAME=wpdbuser
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
ports:
- 172.17.0.1:24581:80
networks:
- blog-network
networks:
blog-network:
driver: bridge
| Variable | Value (example) |
|---|---|
| SOFTWARE_VERSION_TAG | latest |
| ADMIN_EMAIL | [email protected] |
| ADMIN_PASSWORD | admin |
| MYSQL_ROOT_PASSWORD | password |
| MYSQL_USER | wpdbuser |
| MYSQL_PASSWORD | password |
You can access the Web UI at: http://your-domain:9000
The Elestio Wordpress Docker image sends the container logs to stdout. To view the logs, you can use the following command:
docker-compose logs -f
To stop the stack you can use the following command:
docker-compose down
To make backup and restore operations easier, we are using folder volume mounts. You can simply stop your stack with docker-compose down, then backup all the files and subfolders in the folder near the docker-compose.yml file.
Creating a ZIP Archive For example, if you want to create a ZIP archive, navigate to the folder where you have your docker-compose.yml file and use this command:
zip -r myarchive.zip .
Restoring from ZIP Archive To restore from a ZIP archive, unzip the archive into the original folder using the following command:
unzip myarchive.zip -d /path/to/original/folder
Starting Your Stack Once your backup is complete, you can start your stack again with the following command:
docker-compose up -d
That's it! With these simple steps, you can easily backup and restore your data volumes using Docker Compose.
Content type
Image
Digest
sha256:4c3619758…
Size
256.5 MB
Last updated
about 22 hours ago
docker pull elestio/wordpressPulls:
264
Last week