wordpress
This commit is contained in:
28
docker/wordpress/docker-compose.yml
Normal file
28
docker/wordpress/docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
services:
|
||||
|
||||
wordpress:
|
||||
image: wordpress:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 8080:80
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db
|
||||
WORDPRESS_DB_USER: wordpress
|
||||
WORDPRESS_DB_PASSWORD: <password>
|
||||
WORDPRESS_DB_NAME: wordpress
|
||||
WORDPRESS_CONFIG_EXTRA: |
|
||||
define('WP_HOME', 'https://<url>');
|
||||
define('WP_SITEURL', 'https://<url>');
|
||||
volumes:
|
||||
- ./data/wordpress:/var/www/html
|
||||
|
||||
db:
|
||||
image: mariadb:11
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MARIADB_DATABASE: wordpress
|
||||
MARIADB_USER: wordpress
|
||||
MARIADB_PASSWORD: <password>
|
||||
MARIADB_RANDOM_ROOT_PASSWORD: '1'
|
||||
volumes:
|
||||
- ./data/mysql:/var/lib/mysql
|
||||
Reference in New Issue
Block a user