Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.3'
- services:
- db:
- image: mysql:5.7
- volumes:
- - db_data:/var/lib/mysql
- restart: always
- environment:
- MYSQL_ROOT_PASSWORD: somewordpress
- MYSQL_DATABASE: wordpress
- MYSQL_USER: wordpress
- MYSQL_PASSWORD: wordpress
- phpmyadmin:
- image: phpmyadmin/phpmyadmin
- depends_on:
- - db
- environment:
- - PMA_ARBITRARY=1
- - PMA_HOST=db
- restart: always
- ports:
- - 8080:80
- wordpress:
- depends_on:
- - db
- image: wordpress:latest
- ports:
- - 8000:80
- restart: always
- environment:
- WORDPRESS_DB_HOST: db:3306
- WORDPRESS_DB_USER: wordpress
- WORDPRESS_DB_PASSWORD: wordpress
- WORDPRESS_DB_NAME: wordpress
- volumes:
- - ./themes:/var/www/html/wp-content/themes/
- - ./plugins:/var/www/html/wp-content/plugins/
- volumes:
- db_data: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement