Comments (9)
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.
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.
Hi @maxpou.
Yeah its for production.
Thank you.
from docker-symfony.
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.
Hi @Miggianox94 , take a look at https://github.com/renan-taranto/symfony-dddocker. It may help you somehow.
from docker-symfony.
Hi @renan-taranto i am having also the same issue.
Did you find a solution ?
from docker-symfony.
@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.
thanks
from docker-symfony.
@renan-taranto are you using ECS for production ?
from docker-symfony.
Related Issues (20)
- Symfony logs in Kibana HOT 1
- File not found HOT 13
- schema update error HOT 2
- Host data not getting through HOT 1
- ELK on ECS
- how does it work with Symfony HOT 1
- Is there a way to use cron
- missing intl PHP extension during the rendering of a template HOT 1
- Composer could not find a composer.json file in /var/www/symfony HOT 1
- Symfony 4 is not working with this HOT 1
- Combine Nginx & Php-fpm in the same container HOT 1
- Permission denied when trying to update the /etc/hosts
- Composer could not find a composer.json file in /var/www/symfony HOT 1
- adding nodejs image does not work
- Cant access to Containers from host HOT 1
- PHP 5.6 version HOT 2
- Nginx Bad Gateway HOT 2
- ELK keeps restarting? HOT 1
- SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client HOT 6
- Problem fastcgi HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-symfony.