Code Monkey home page Code Monkey logo

Comments (10)

jaouadk avatar jaouadk commented on August 16, 2024

homestead-docker's stack is capable of running wordpress. just add it as another app to your current container.

see read me on how to add another virtual host.

from homestead-docker.

digitalit avatar digitalit commented on August 16, 2024

Yes that was my first thought but since my Swedish provider for non Laravel sites runs Apache, PHP 5.6 and MySQL i thought i should try to replicate that environment as close as i could.

Maybe this is unnecessary and if so i would be more than happy to run all projects in your docker.

I guess the big problem is that if i run MariaDB in dev and export to prod that runs MySQL this will be an problem. Maybe i can run two sql containers side by side?

What is your opinion?

from homestead-docker.

jaouadk avatar jaouadk commented on August 16, 2024

Yes you can add another Mysql container see this: https://github.com/docker-library/mysql

Just set the proper configuration in your wordpress config file and everything should work fine.

from homestead-docker.

digitalit avatar digitalit commented on August 16, 2024

i just need to chose different porst right?

ports:
        - "33060:3306"

from homestead-docker.

digitalit avatar digitalit commented on August 16, 2024

Do you think this would work?

### MariaDB Container #########################################
mariadb:
    image: tutum/mariadb
    restart: always
    ports:
        - "33060:3306"
    environment:
        MARIADB_USER: admin # cannot be changed ( for info. only )
        MARIADB_PASS: root
    volumes:
        - ~/dc/apps/volumes/mariadb:/var/lib/mysql # database files
### MySQL Container #########################################
 mysqldb:
    image: mysql:5.7
    restart: always
    ports:
        - "33068:3306"
    environment:
        MYSQL_ROOT_PASSWORD: root
    volumes:
        - ~/dc/apps/volumes/mysqldb:/var/lib/mysql # database files

from homestead-docker.

jaouadk avatar jaouadk commented on August 16, 2024

Yes, this config should work.

from homestead-docker.

digitalit avatar digitalit commented on August 16, 2024

Unfortunately this didn't work.

Some WP sites and all Joomla sited prior to version 3.5 doesn't work with PHP7.

Any tip would be appreciated.

from homestead-docker.

jaouadk avatar jaouadk commented on August 16, 2024

Try the other image which works with php 5.6

shincoder/homestead:php5.6

from homestead-docker.

digitalit avatar digitalit commented on August 16, 2024

Great!
I suspect that my Joomla sites wants Apache instead of Nginx.

Is it possible to run Apache instead of Nginx?

from homestead-docker.

jaouadk avatar jaouadk commented on August 16, 2024

Change the provision script accordingly. then configure your virtual host, and you're good to go.

Or find another project offering the stack as a docker container.

from homestead-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.