sample wordpress-mysql docker-compose
This commit is contained in:
parent
493d10b1d9
commit
2e6d7fe044
33
eindopdracht/docker/wordpress-website/docker-compose.yml
Normal file
33
eindopdracht/docker/wordpress-website/docker-compose.yml
Normal file
@ -0,0 +1,33 @@
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
wp-mysql:
|
||||
image: mysql
|
||||
restart: unless_stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: somewordpress
|
||||
MYSQL_DATABASE: wordpress
|
||||
MYSQL_USER: wordpress
|
||||
MYSQL_PASSWORD: wordpress
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
|
||||
wordpress:
|
||||
image: wordpress
|
||||
ports:
|
||||
- "8000:80"
|
||||
restart: unless_stopped
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db:3306
|
||||
WORDPRESS_DB_USER: wordpress
|
||||
WORDPRESS_DB_PASSWORD: wordpress
|
||||
WORDPRESS_DB_NAME: wordpress
|
||||
volumes:
|
||||
- wordpress_data:/var/www/html
|
||||
depends_on:
|
||||
- wp-mysql
|
||||
|
||||
volumes:
|
||||
db_data: {}
|
||||
wordpress_data: {}
|
||||
|
Reference in New Issue
Block a user