Advertisement
sergio_educacionit

wordpress docker deploy

May 17th, 2025
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1.  
  2. docker network create wordpress.app-net
  3.  
  4.  
  5. docker run -d \
  6. --name wordpress-db \
  7. --network wordpress.app-net \
  8. -e MYSQL_ROOT_PASSWORD=secret \
  9. -e MYSQL_DATABASE=wordpress \
  10. -e MYSQL_USER=manager \
  11. -e MYSQL_PASSWORD=secret \
  12. mariadb:latest
  13.  
  14.  
  15. docker run -d \
  16. --name wordpress.app \
  17. --network wordpress.app-net \
  18. --link wordpress-db:mysql \
  19. -e WORDPRESS_DB_USER=manager \
  20. -e WORDPRESS_DB_PASSWORD=secret \
  21. -e WORDPRESS_DB_NAME=wordpress \
  22. -p 9000:80 \
  23. wordpress:latest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement