Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- db:
- image: mysql:5.7
- volumes:
- - db_data:/var/lib/mysql
- restart: always
- environment:
- MYSQL_ROOT_PASSWORD: password
- MYSQL_DATABASE: wordpress
- MYSQL_USER: user
- MYSQL_PASSWORD: password
- ports:
- - "3306:3306"
- wordpress:
- depends_on:
- - db
- image: wordpress:latest
- ports:
- - "8000:80"
- restart: always
- volumes:
- - ./wp-content/:/var/www/html/wp-content
- environment:
- WORDPRESS_DB_HOST: db:3306
- WORDPRESS_DB_USER: root
- WORDPRESS_DB_PASSWORD: password
- volumes:
- db_data:
Add Comment
Please, Sign In to add comment