Simple APIResfull in Symfony 4 with Dockers
- sf4_apache (run web server)
- sf4_php (run php fpm)
- sf4_phpmyadmin (run db administration)
- sf4_mysql (run db server)
docker-compose builddocker-compose up -ddocker stop $(docker ps -a -q)composer installdocker exec -it sf4_php bash
cd sf4
php bin/console doctrine:migrations:migratemkdir config/jwt2. Generate the private certificate using the pass phrase "symfony4" (or whatever defined in .env -> JWT_PASSPHRASE)
openssl genrsa -out config/jwt/private.pem -aes256 4096openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pemsudo chown www-data:www-data config/jwt/private.pem config/jwt/public.pemUser: sf4 Password: sf4
{your_hosting}/api/doc