Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- db:
- container_name: database
- image: mariadb:10.2.22
- ports:
- - "3306:3306"
- volumes:
- - ./db:/var/lib/mysql
- restart: always
- environment:
- MYSQL_ROOT_PASSWORD: wordpress
- MYSQL_DATABASE: wordpress
- MYSQL_USER: wordpress
- MYSQL_PASSWORD: wordpress
- wordpress:
- image: wordpress:5.0.3-php7.1-apache
- container_name: wordpress
- depends_on:
- - db
- ports:
- - "80:80"
- links:
- - db
- restart: always
- environment:
- WORDPRESS_DB_HOST: db:3306
- WORDPRESS_DB_PASSWORD: wordpress
- phpmyadmin:
- image: phpmyadmin/phpmyadmin:4.8
- container_name: phpmyadmin
- depends_on:
- - db
- restart: always
- ports:
- - "8080:80"
- environment:
- - PMA_HOST=db
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement