Skip to content
Playground for Symfony API Platform framework
JavaScript PHP CSS Dockerfile HTML Shell Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
admin
api
client
h2-proxy
.env
.gitignore
.travis.yml
LICENSE
README.md
docker-compose.yml
update-deps.sh

README.md

API Platform

Requirements

  • Docker
  • Docker-compose

Installation

  • git pull [THIS-REPO]
  • docker-compose pull
  • docker-compose up -d
  • (optional)docker-compose exec php bin/console doctrine:fixtures:load

Configure https://github.com/lexik/LexikJWTAuthenticationBundle/

In short

$ docker-compose exec php mkdir -p config/jwt

$ docker-compose exec php openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa

$ docker-compose exec php openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout_keygen_bits:4096

Make sure you give read and execute permissions to the files created

$ docker-compose exec php chmod -R 775 config/jwt

I had some problems with elasticsearch "max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]". The solution was:

$ sudo sysctl -w vm.max_map_count=262144

https://github.com/docker-library/elasticsearch/issues/111

You can’t perform that action at this time.