Guest User

Untitled

a guest
Nov 11th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. services:
  2.  
  3. # Define the mariadb service
  4. mariadb:
  5. image: docker.io/bitnami/mariadb:11.4
  6. volumes:
  7. - wordpress_db:/bitnami/mariadb
  8. environment:
  9. - ALLOW_EMPTY_PASSWORD=yes # ALLOW_EMPTY_PASSWORD is recommended only for development. Using an empty password in production can pose security risks, such as unauthorized access to the database.
  10. - MARIADB_USER=bn_wordpress
  11. - MARIADB_DATABASE=bitnami_wordpress
  12. networks:
  13. - wordpress_backend
  14.  
  15. # Define the phpmyadmin service
  16. phpmyadmin:
  17. image: docker.io/bitnami/phpmyadmin:5
  18. ports:
  19. - 80:8080
  20. - 443:8443
  21. depends_on:
  22. - mariadb
  23. environment:
  24. - DATABASE_ALLOW_NO_PASSWORD=false # Disallowing no password for security reasons to prevent unauthorized access.
  25. - PHPMYADMIN_ALLOW_ARBITRARY_SERVER=yes
  26. networks:
  27. custommacvlan:
  28. ipv4_address: 192.168.100.201
  29. wordpress_backend:
  30.  
  31. # Define the wordpress service
  32. wordpress:
  33. image: docker.io/bitnami/wordpress:latest
  34. ports:
  35. - 80:8080
  36. - 443:8443
  37. volumes:
  38. - wordpress_data:/bitnami/wordpress
  39. depends_on:
  40. - mariadb
  41. environment:
  42. - ALLOW_EMPTY_PASSWORD=yes # ALLOW_EMPTY_PASSWORD is recommended only for development. Using an empty password in production can pose security risks, such as unauthorized access to the database.
  43. - WORDPRESS_DATABASE_HOST=mariadb
  44. - WORDPRESS_DATABASE_PORT_NUMBER=3306
  45. - WORDPRESS_DATABASE_USER=bn_wordpress
  46. - WORDPRESS_DATABASE_NAME=bitnami_wordpress
  47. networks:
  48. custommacvlan:
  49. ipv4_address: 192.168.100.200
  50. wordpress_backend:
  51.  
  52.  
  53. # Define the volumes
  54. volumes:
  55. wordpress_data:
  56. driver: local
  57. name: wordpress_data
  58. wordpress_db:
  59. driver: local
  60. name: wordpress_db
  61.  
  62. # Define the networks
  63. networks:
  64. custommacvlan:
  65. external: true
  66. wordpress_backend:
  67. name: wordpress_backend
  68.  
  69.  
Advertisement
Add Comment
Please, Sign In to add comment