Giter Site home page Giter Site logo

Comments (9)

renan-taranto avatar renan-taranto commented on August 17, 2024 2

The Api Platform (https://github.com/api-platform/api-platform) has a great docker setup with nginx and php fpm that can be used as reference.
I wish I could help more but I'm still learning both docker and nginx.

from docker-symfony.

maxpou avatar maxpou commented on August 17, 2024

Hi!
I just test assetics with volume. Everything works fine (I follow documentation).
But when we switch to ADD, I've the same problem. NGINX&PHP consider /js/fsajkfla.js as a PHP file.

I'll dig in this direction: http://symfony.com/doc/current/setup/web_server_configuration.html
Because my configuration is different from the Symfony one.

Stupid question, but why you don't want volume? It is for production mode?

from docker-symfony.

renan-taranto avatar renan-taranto commented on August 17, 2024

Hi @maxpou.
Yeah its for production.

Thank you.

from docker-symfony.

Miggianox94 avatar Miggianox94 commented on August 17, 2024

Hi, I have the same problem. When I use ADD or COPY instead of volumes (for production images) the assets return 404. Have you found a solution? Thanks.

from docker-symfony.

renan-taranto avatar renan-taranto commented on August 17, 2024

Hi @Miggianox94 , take a look at https://github.com/renan-taranto/symfony-dddocker. It may help you somehow.

from docker-symfony.

Khaldoun488 avatar Khaldoun488 commented on August 17, 2024

Hi @renan-taranto i am having also the same issue.
Did you find a solution ?

from docker-symfony.

renan-taranto avatar renan-taranto commented on August 17, 2024

@Khaldoun488 I ended up not using this project boilerplate. Besides the resources I've already mentioned, this may help also: https://symfony.com/doc/current/setup/web_server_configuration.html#nginx

from docker-symfony.

Khaldoun488 avatar Khaldoun488 commented on August 17, 2024

thanks

from docker-symfony.

Khaldoun488 avatar Khaldoun488 commented on August 17, 2024

@renan-taranto are you using ECS for production ?

from docker-symfony.

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.