cap-coding / symfony_docker Goto Github PK
View Code? Open in Web Editor NEWDocker integration for Symfony 5 application. Docker for local development and for production
Home Page: https://www.youtube.com/channel/UC6zO18D8DPObHuLviizoPKQ
Docker integration for Symfony 5 application. Docker for local development and for production
Home Page: https://www.youtube.com/channel/UC6zO18D8DPObHuLviizoPKQ
I'm getting a permissions error, two different computers.
glt clone ..
docker-compose up --build
403 error.
php_1 | [10-Oct-2022 22:23:45] NOTICE: fpm is running, pid 1
php_1 | [10-Oct-2022 22:23:45] NOTICE: ready to handle connections
nginx_1 | 2022/10/10 22:27:02 [error] 30#30: *1 directory index of "/app/public/" is forbidden, client: 172.31.0.1, server: , request: "GET / HTTP/1.1", host: "localhost:8080"
nginx_1 | 172.31.0.1 - - [10/Oct/2022:22:27:02 +0000] "GET / HTTP/1.1" 403 555 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36" "-"
nginx_1 | 2022/10/10 22:27:02 [error] 30#30: *1 open() "/app/public/favicon.ico" failed (2: No such file or directory), client: 172.31.0.1, server: , request: "GET /favicon.ico HTTP/1.1", host: "localhost:8080", referrer: "http://localhost:8080/"
nginx_1 | 172.31.0.1 - - [10/Oct/2022:22:27:02 +0000] "GET /favicon.ico HTTP/1.1" 404 555 "http://localhost:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36" "-"
After just clone your repo and docker-compose up -d command execution I have 502 Bad Gateway Nginx error on route localhost:8080/api/v1/orders/1
Logs:
2021/01/13 12:43:45 [error] 30#30: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.20.0.1, server: , request: "GET /api/v1/orders/1 HTTP/1.1", upstream: "fastcgi://172.20.0.3:9001", host: "localhost:8080"
Ive cloned the exact code from master and ran:
docker-compose up -d --force-recreate --build
The containers start but when visiting localhost:8080
I get 403 Forbidden.
Setup:
Win10 - Docker V19.03.13
When running docker-compose up
(not daemonized) I get these (shortened) logs from the php container
php_1 | 50 packages you are using are looking for funding.
php_1 | Use the `composer fund` command to find out more!
php_1 |
php_1 | Run composer recipes at any time to see the status of your Symfony recipes.
php_1 |
php_1 | Executing script cache:clear [OK]
php_1 | Executing script assets:install public [OK]
php_1 |
': No such file or directorycute 'php
(and then the container restarts)
Any idea why this is happening? Thank you for your time!!!
//EDIT
I DID change something though. First time I only cloned and started I got php_1 | standard_init_linux.go:211: exec user process caused "no such file or directory"
. By changing CRLF to LF on docker-entrypoint.sh
I got past that, but the above error occurred
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.