Part of this project is copied from https://github.com/duck-invaders/graphql-symfony
This is a complete stack for running Symfony 5 (LTS Version) into Docker containers using docker-compose tool.
I'll try to add some others fixtures :
- Integrate phpmyadmin interface
- Create graphql samples
- Compiler pass use (Example : share content via linkedin, twitter, facebook, ...)
- Makefile
- TestUnit (To do)
This bundle requires Symfony 5 and the openssl extension.
- First, clone this repository:
$ git clone https://github.com/tigersf2/graphql-symfony-skeleton.git- Start Containers and install dependencies
Next, put your Symfony application into symfony folder and do not forget to add symfony.localhost in your /etc/hosts file.
Make sure you adjust database_host in parameters.yml to the database container alias "mariadb"
Then, run:
$ make up
$ make start
$ make composer
$ make database-create
$ make database-update- Configure database into .env file
DATABASE_URL=mysql://symfony:symfony@mariadb:3306/symfonyNote : you can rebuild all Docker images by running:
$ make buildYou are done, you can visit your Symfony application
- Symfony application
http://symfony.localhost- Graphiql
http://symfony.localhost/graphiql- Kibana
http://symfony.localhost:81- phpmyadmin
http://symfony.localhost:9191symfony / symfony