Giter VIP home page Giter VIP logo

Comments (3)

kasteckis avatar kasteckis commented on July 17, 2024

@nuryagdym, I haven't tested this on Windows. Docker sometimes work differently on different OS's.

I would suggest you to try to visit 0.0.0.0:80 on your browser.

Also try to visit 0.0.0.0:8183 to see maybe phpmyadmin works.

Let me know if this helped.

from symfony-docker-compose.

nuryagdym avatar nuryagdym commented on July 17, 2024

Finally, I was able to solve the issue.
The first problem is the port configuration, "80:8080", of the web container.
It should be "80:80" because apache serves on 80 port not 8080.
The second problem is, with DATABASE_URL=mysql://root:[email protected]:3306/project?serverVersion=5.7 this configuration in .env web container is trying to connect DB in the same host (192.168.2.2):
image

And final problem is, I can connect to this containers only via localhost. 192.168.2.0 network address seems the address containers use internally between each other

from symfony-docker-compose.

kasteckis avatar kasteckis commented on July 17, 2024

Thanks for letting me know.

1st problem - Since I've been testing this only on Ubuntu 20.04, it worked with previous mappings, but it also works with yours, so I changed them.

2nd problem - by default it should be DATABASE_URL=mysql://root:@192.168.2.3:3306/project

3rd problem - On Ubuntu 20.04 I can easily allocate 192.168.2.0/24 without any problems, haven't tested on Windows, you can always change that.

from symfony-docker-compose.

Related Issues (2)

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.