composer create-project --ignore-platform-reqs tseho/symfony-api-skeleton [directory]
build the docker image:
DOCKER_IMAGE_NAME=foo DOCKER_IMAGE_VERSION=latest make docker-image
launch apache+php on port 8080:
docker run -d -p 127.0.0.1:8080:8080/tcp $DOCKER_IMAGE_NAME:$DOCKER_IMAGE_VERSION
- Create your local
.env
file
make .env
- Edit the values in
.env
, if necessary - Start the development environment:
make up
make up # build & start the containers
make down # stop the containers
make destroy # remove all containers, all volumes, all docker images
make tests # launch all the tests
docker-compose run --rm php bin/console [cmd] # execute a symfony command
docker-compose run --rm composer [cmd] # execute a composer command