ger86 / symfony-docker Goto Github PK
View Code? Open in Web Editor NEWThis is a complete stack for running Symfony 6 with PHP-FPM 8.2 and MySQL 8 into Docker containers using docker-compose tool.
License: GNU General Public License v3.0
This is a complete stack for running Symfony 6 with PHP-FPM 8.2 and MySQL 8 into Docker containers using docker-compose tool.
License: GNU General Public License v3.0
Wouldn't be better to give php version in line below?
FROM php:fpm-stretch
For example:
FROM php:8.0.10-fpm
Why do you use "fpm-stretch" ? Is it an individual package prepared by someone??
And the similar problem with nginx: FROM nginx:latest
Isn't it dangerous to give last version? In a year two, when a new nginx will come?
Hello there!
I created a user login, but the session file is created as root and after the redirect post login, it's lost.
Here is an example of my session folder:
root@fc6efdbb31d0:/var/www/symfony# ll var/sessions/dev/ total 28 drwxr-xr-x 9 www-data www-data 288 Dec 15 13:19 . drwxr-xr-x 3 www-data www-data 96 Dec 15 11:39 .. -rw------- 1 root root 165 Dec 15 13:18 sess_06e7a9a8c7fba9cf4cbd88017b320951 -rw------- 1 root root 664 Dec 15 13:19 sess_2c5510a07cd78830c3ae819251fb1534 -rw------- 1 www-data www-data 664 Dec 15 12:52 sess_2dcc4a8d4e055368c644b65387f28c44 -rw------- 1 www-data www-data 664 Dec 15 12:38 sess_6c5b1267748fb14f1f9f264285c8152c -rw------- 1 www-data www-data 165 Dec 15 12:52 sess_865851975c66178b34c093a301f421c8 -rw------- 1 www-data www-data 165 Dec 15 12:37 sess_878aea56cb302b85317b81c2fb85e42c -rw------- 1 root root 115 Dec 15 13:19 sess_ffa652566dd353f6bb7dba4a36daae7a
The www-data files exists because I try to change the permissions, but the new files are created as root anyway.
Hi,
Once the docker is up all the three containers are running and when I tried to connect with MySQL database. I couldn't connect with symfony framework..Kindly help me on this to proceed further.
Hello @ger86, please advise if mysql folder is used somehow?
Hi! when you go to localhost , you get File not found.
in docker logs
FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.18.0.1, server: dev.symfony-docker.com, request: "GET / HTTP/1.1", upstream: "fastcgi://172.18.0.3:9000", host: "localhost"
Hola @ger86 cuando lanzo el comando docker-sync-stack start me sale el siguiente error:
El sistema no puede encontrar la ruta especificada.
error you shouldn't be here
Tengo bien instalada la librería de docker-sync y la verdad que no se de dónde puede venir el error...
Muchas gracias, como siempre!
the symfony installation misses the vendor directory.
Thanks for your work and please help me.
I work on Linux.
I committed all points of your 'Installation' guide.
After running 'composer install' the packages were downloaded and installed but after it, I see my 'vendor' folder empty.
I use phpStorm.
Where is the 'vendor' which was installed packages in?
Also, how to use these containers with phpStrom?
Volodymyr
Hi! please see this issue, in your repository exactly the same thing happens
coopcycle/coopcycle-web#1853
Warning: require(/var/www/symfony/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/symfony/config/bootstrap.php on line 5
Fatal error: require(): Failed opening required '/var/www/symfony/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/symfony/config/bootstrap.php on line 5
What to do?
Hey there,
is the project still useable? Because i did want to start the containers, but I have to use the docker-sync-stack command
like you said in the README-file. The Problem is that it doesn't find the docker-sync command.
I would appriciate your help.
THANKS
I tried to start docker-compose up -d and got next error:
docker-compose up -d
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.db: 'platform'
Help me, please.
What do I need to edit in this?
My system is Ubuntu 20.04
Hola,
Al correr el proyecto da el siguiente error:
➜ symfony-docker git:(master) ✗ docker-compose up
Starting symfony-docker_mysql_1 ... done
Starting symfony-docker_nginx_1 ... done
Starting symfony-docker_php_1 ... done
Attaching to symfony-docker_mysql_1, symfony-docker_nginx_1, symfony-docker_php_1
php_1 | [11-Dec-2019 12:43:25] NOTICE: fpm is running, pid 1
php_1 | [11-Dec-2019 12:43:25] NOTICE: ready to handle connections
mysql_1 | mysqld: Can't open file: 'mysql.ibd' (errno: 0 - )
mysql_1 | 2019-12-11T12:43:25.200283Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
mysql_1 | 2019-12-11T12:43:25.201042Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.17) starting as process 1
mysql_1 | 2019-12-11T12:43:26.474742Z 1 [ERROR] [MY-013171] [InnoDB] Cannot boot server version 80017 on data directory built by version 80018. Downgrade is not supported
mysql_1 | 2019-12-11T12:43:31.477182Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
mysql_1 | 2019-12-11T12:43:31.477585Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
mysql_1 | 2019-12-11T12:43:31.477956Z 0 [ERROR] [MY-010119] [Server] Aborting
mysql_1 | 2019-12-11T12:43:31.484672Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.17) MySQL Community Server - GPL.
symfony-docker_mysql_1 exited with code 1
At first it worked but after something it stopped working. The error is totally unclear, like its just not working server. But when I go to localhost - it loads homepage, so it means server works. How can this be?
And I do not understand where to check for logs. I just see symbolyc links to symbolic links
Hi!
When i try to access localhost:80 it says: File not Found.
I want to run the project on a Ubuntu Server. The problem is, docker sync is for linux not stable. Is it possible to just use docker compose?
For Development on my Mac everything works smooth, working with docker sync and the remote container extension.
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.