One guy was asking about some crawler on #symfony channel, so I just created
this example repository which uses symfony/panther
component for that.
- docker-compose
- If you are not using docker-compose, then just check what is done in
Makefile
*nix platform
- most likely you're going to host your application on *nix platform - so I would recommend to do development also on that platform.Makefile
support - if you don't have this you need to lookMakefile
file to see what eachmake
command is doing.
This installation guide expects that you're using docker-compose
and your
operation system has Makefile
support.
Use your favorite IDE and get checkout from GitHub or just use following command
git clone https://github.com/tarlepp/josecostas
For this just run following command:
make start
This command will create two (2) containers to run this application. Those containers are following:
- php (this is for actual application)
- nginx (this will serve application)
By default make start
command starts those two containers and exposes
following to your localhost
:
- 8000 (nginx + php-fpm)
This application is usable within your browser on http://localhost:8000
address.
After you've run make start
command you can list all running containers with
docker ps
command.
To get shell
access inside one of those containers you can run following
command:
make bash
For time to time you probably need to build containers again. This is something that you should do everytime if you have some problems to get containers up and running. This you can do with following command:
make start-build
Copyright © 2020 Tarmo Leppänen