Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "2"
- services:
- wpdb:
- restart: always
- image: mysql:5.7
- container_name: wpdb
- environment:
- - MYSQL_ROOT_PASSWORD=wordpress
- - MYSQL_DATABASE=wordpress
- - MYSQL_USER=wordpress
- - MYSQL_PASSWORD=wordpress
- volumes:
- - /opt/wordpress/mysql:/var/lib/mysql
- wordpress:
- image: wordpress
- container_name: wordpress
- restart: always
- depends_on:
- - wpdb
- environment:
- WORDPRESS_DB_HOST: wpdb:3306
- WORDPRESS_DB_USER: wordpress
- WORDPRESS_DB_PASSWORD: wordpress
- ports:
- - "8080:80"
- volumes:
- - /opt/wordpress/data:/var/www/html
- volumes:
- wpdb:
- wordpress:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement