Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- docker network create wordpress.app-net
- docker run -d \
- --name wordpress-db \
- --network wordpress.app-net \
- -e MYSQL_ROOT_PASSWORD=secret \
- -e MYSQL_DATABASE=wordpress \
- -e MYSQL_USER=manager \
- -e MYSQL_PASSWORD=secret \
- mariadb:latest
- docker run -d \
- --name wordpress.app \
- --network wordpress.app-net \
- --link wordpress-db:mysql \
- -e WORDPRESS_DB_USER=manager \
- -e WORDPRESS_DB_PASSWORD=secret \
- -e WORDPRESS_DB_NAME=wordpress \
- -p 9000:80 \
- wordpress:latest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement