You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
831 B
42 lines
831 B
version: '3'
|
|
|
|
services:
|
|
wordpress:
|
|
image: wordpress
|
|
ports:
|
|
- "80:80"
|
|
environment:
|
|
WORDPRESS_DEBUG: 1
|
|
WORDPRESS_DB_HOST: db
|
|
WORDPRESS_DB_USER: wordpress
|
|
WORDPRESS_DB_PASSWORD: password
|
|
WORDPRESS_DB_NAME: wordpress
|
|
WORDPRESS_CONFIG_EXTRA: |
|
|
define( 'WP_ENVIRONMENT_TYPE', 'local' );
|
|
volumes:
|
|
- ./wordpress:/var/www/html
|
|
|
|
db:
|
|
image: mysql:latest
|
|
environment:
|
|
MYSQL_DATABASE: wordpress
|
|
MYSQL_USER: wordpress
|
|
MYSQL_PASSWORD: password
|
|
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
|
volumes:
|
|
- ./db:/var/lib/mysql
|
|
|
|
phpmyadmin:
|
|
image: phpmyadmin/phpmyadmin
|
|
ports:
|
|
- "8181:80"
|
|
environment:
|
|
PMA_ARBITRARY: 1
|
|
PMA_HOST: db
|
|
PMA_USER: wordpress
|
|
PMA_PASSWORD: password
|
|
|
|
volumes:
|
|
wordpress:
|
|
db:
|
|
|