Simple Wordpress Dockerfile for hub.docker.com with minor improvements for the goo1-cloud
$ docker run -d andreaskasper/wordpress
version 2
services:
wordpress:
image: andreaskasper/wordpress:latest
restart: always
ports:
- 8080:80
volumes:
- ./data/:/var/www/html/wp-content/
links:
- database:db
database:
image: mariadb
restart: always
| Parameter | Description | Example |
|---|---|---|
| WORDPRESS_DB_HOST | Name of the MySQL Host | mysql:3306 |
| WORDPRESS_DB_USER | MySQL Username | wordpress_user |
| WORDPRESS_DB_PASSWORD | MySQL Password | 123456;-) |
| WORDPRESS_DB_NAME | MySQL Database Name | worpdress |
| WORDPRESS_AUTH_KEY | ||
| WORDPRESS_SECURE_AUTH_KEY | ||
| WORDPRESS_LOGGED_IN_KEY | ||
| WORDPRESS_NONCE_KEY | ||
| WORDPRESS_AUTH_SALT | ||
| WORDPRESS_SECURE_AUTH_SALT | ||
| WORDPRESS_LOGGED_IN_SALT | ||
| WORDPRESS_NONCE_SALT | ||
| WORDPRESS_DEBUG | 1 | |
| WORDPRESS_CONFIG_EXTRA | Extra Configurations for wp-config.php | define('FS_METHOD', 'direct'); |
| Folder | Description |
|---|---|
| /var/www/html/wp-content/ | wp-content datadir |
Content type
Image
Digest
Size
193.1 MB
Last updated
over 5 years ago
docker pull andreaskasper/wordpress