Set up WordPress with Docker… Fast!

–>

YouTube

Mit dem Laden des Videos akzeptieren Sie die Datenschutzerklärung von YouTube.
Mehr erfahren

Video laden


Get to know everything about Docker and become a Docker Master! [Online Course]: http://bit.ly/dckrcrs

There are many sources online explaining how to set up a WordPress blog with Docker. Unfortunately many force you into bad practices. In this video we’ll show the perfect workflow to set up, develop and update a WordPress installation in a matter of minutes. No hassle!

Subscribe to our container newsletter: https://upscri.be/e7bdfd/
Read more on our blog: https://cntnr.io/setting-up-wordpress-with-docker-262571249d50#.16tokcfo2

Github repo with demo code: https://github.com/ndemoor/docker-wordpress-workflow-demo
Our blog: https://cntnr.io

The Containerizers

Share

Comments

  1. This is amazing. I didn't realize docker was so easy to use. I'm definitely going to try this!

  2. Being absolutely new to docker, after resisting it for so long…

    1. When updating the docker volume to 3.7.1 why did you have to click the update button within the admin ? Shouldn't that image contain the updated software?
    2. How would you deploy this to a live or staging server?
    3. How do you bind to local domains e.g. run this on mysite.dev locally – so that I can run multiple WordPress applications locally using a localized fqdn.

  3. What is Docker?

  4. Hi The Containerizers, I got problem:

    The localhost page isn’t working when I typed localhost:8000? I have used port 8000, please help me, thx

  5. Thanks for the video, but after I'm all up and running, I am unable to do things such as upload images, add plugins etc- without wordpress asking me for ftp credentials. I have looked around a bit, and tried chown-ing, but nothing seemed to work… I'm not afraid to use the command line if you know a way to get the permissions to work/ to avoid those issues.

    Thanks!

  6. Great video!
    Question: Do you know how to make the development url to look like "http://websitename.dev" instead of "http://localhost"?

  7. Hi! Amazing video, you helped me a lot! I encountered a problem as I install a wordpress theme: "Mysql server has gone away". How can I change the timeout limit of my container? Thank you!

  8. Good job

  9. Thank you Mr. Nils, that's exactly what I was looking for! 🙂

  10. Thank you!

  11. Hi, nice video! 🙂
    One question, qhere is the php.ini file in order to increase the max_upload_file_size ? In some dockers I can create a file .ini under /usr/local/etc/php/conf.d

  12. Very helpful tutorial!

    What if I wanted to keep my mysql data on my host machine? What would I have to change?

    db:
    images:mysql:5.7

    volumes:
    – ./data:/var/lib/mysql

    volumes:
    data:

    Is that correct?

  13. Great intro. Thanks for putting that together.

    What about multiple containers running at the same time? What about managing multiple development sites' urls in host/etc file.

  14. Hi again 🙂
    I trying to up the docker in the port 80, so when I enter my domain I get direct to wordpress site, but the if I put localhost it get always redirected to localhost:9000, I do not have any configuration for that, in the yml config for wordpress I putt 80:80.

    Any help is
    well welcomed 🙂

  15. I cannot get myPHPAdmin to sign in because it says "#1045 – Access denied for user 'root'@'172.20.0.3' (using password: YES)"

    Here's my docker-compose:

    version: '2'
    services:
    wordpress:
    depends_on:
    – db
    image: wordpress:4.7.5-php5.6
    restart: always
    volumes:
    – ./wp-content:/var/www/html/wp-content
    environment:
    WORDPRESS_DB_HOST: db:3306
    WORDPRESS_DB_PASSWORD: password
    ports:
    – 80:80
    – 443:443
    networks:
    – back
    db:
    image: mariadb:10.3.0
    restart: always
    volumes:
    – db_data:/var/lib/mysql
    environment:
    MYSQL_ROOT_PASSWORD: password
    networks:
    – back
    phpmyadmin:
    depends_on:
    – db
    image: phpmyadmin/phpmyadmin
    restart: always
    ports:
    – 8080:80
    environment:
    PMA_HOST: db
    MYSQL_ROOT_PASSWORD: password
    networks:
    – back
    networks:
    back:
    volumes:
    db_data:

    Any help will be greatly appreciated!

  16. how can i connect my WordPress container to a external database?

  17. the volume db_data where do you define that?

  18. Hi, great video! How would you deploy to a production server ?

  19. Very helpful!!

    Thanks

  20. A nice video, but it stops like most of web tutorials at the point where it becomes interesting: What about mail?? This video configuration is nice for learning Docker. And the video is very useful for this purpose. No question about that. But a fully fledged wordpress installation must of cource include the mail configuration. No thumb up, no thumb down.

  21. So i have WordPress running but I can't find that file you have it's strange but I did also download Docker tools if that makes any diff Thanks in advance

  22. Just what I needed. A very quick, simple video to get myself up and running. Thanks!

  23. thanks, well done, sublime has themes you know

  24. can i use this code on raspberry pi?

  25. Great video, but not super clear on the last couple lines `volumes: db_data` where is the data actually stored?

    Also, what would the setup look like for mail?

  26. this is so easy beside do everything from scratch with Ansible.

  27. Great video. And how would you recommend to do to have multiple instances on the same server pointing to differnet domains? (multiple wordpress website)

  28. so where is the benefit … fo dockerC. against debian/ubuntu/nginx server speed ? from customer perspektiv…i have running multi site on diff. server constellation.whats better ?? database access ? or general speed why ? if u wish u can send me email cortana999@g…com …need to understand docker systems

  29. life saver, saved hours of searching. THANKS! ?

  30. I am new to dockers.

    After searching lot of time in the time in Internet. I found your video.
    Thank you very much. Your video helped a lot.

  31. Newbie question. Using DockerToolbox for Win8.1 & Docker for Windows for Win10. But I use Win8.1 PC mostly.
    In this video,
    Did you create a local folder, e.g. c:/SomeFolder, and placed the yml file in that folder before you ran the command docker-compose up -d ?

    WRT Volume, does the subfolder, /var/lib/mysql, automatically created in this "c:/SomeFolder" directory automatically?

    I am in Windows environment, do I need to modified the yml file in order to ensure the "/var/lib/mysql" subfolder is created in the "c:/SomeFolder" directory?

    Will phpmyadmin also created in this "c:/SomeFolder" folder? i.e. I can still use phpmyadmin on my other mysql (non-docker) install in my PC?

    When I bring up docker, there is a localIP assigned: 192.168.99.xxx. It is always the same IP whenever docker is up.
    In your video, when you tested WordPress, you used localhost.
    In my case, I can't use localhost to run WordPress but 192.168.99.xxx, correct?

    How did you configure your computer to run WordPress in localhost?

    Thanks in advance.

  32. Im having an autoptomize not enabled error when I launch wordpress.. Anybody ever experience this? I can SSH into my ec2 instance where my docker container is running and type docker exec -it <ImageID> chown -R www-data:www-data wp-content/, and this fixes it but im trying to do that directly from my docker file and not having any luck. Any Suggestions?

  33. Very helpful. Thanks.

Comments are closed.