![Cover image for Docker Compose - wordpress and docker [EN]](/image.pl?url=https%3a%2f%2fmedia2.dev.to%2fdynamic%2fimage%2fwidth%3d1000%2cheight%3d420%2cfit%3dcover%2cgravity%3dauto%2cformat%3dauto%2fhttps%253A%252F%252Fdev-to-uploads.s3.amazonaws.com%252Fi%252F8yxosq69abnqzmladqmu.png&f=jpg&w=240)
I came here to share while listening to my "sertanejo" a script for docker-compose that creates a container with Wordpress and MariaDb as a database for a project i'm doing on twitch which is to create some themes so that's it i hope it helps someone else and any question just comment and i will be happy to answer ✌️
version:'3'services:wordpress:image:wordpressrestart:alwaysports:-8080:80environment:WORDPRESS_DB_HOST:dbWORDPRESS_DB_USER:userWORDPRESS_DB_PASSWORD:passWORDPRESS_DB_NAME:wordpressvolumes:-wordpress:/var/www/htmldepends_on:-dbdb:image:mariadb:latestrestart:alwaysenvironment:MYSQL_DATABASE:wordpressMYSQL_USER:userMYSQL_PASSWORD:passMYSQL_RANDOM_ROOT_PASSWORD:'1'volumes:-db:/var/lib/mysqlvolumes:wordpress:db:
Top comments(1)
Subscribe

Nice article, this might be worth a lookgithub.com/WMRamadan/docker-compos...
For further actions, you may consider blocking this person and/orreporting abuse