|
|
há 4 meses atrás | |
|---|---|---|
| bin | há 1 ano atrás | |
| config | há 4 meses atrás | |
| migrations | há 1 ano atrás | |
| public | há 1 ano atrás | |
| src | há 4 meses atrás | |
| static | há 1 ano atrás | |
| templates | há 1 ano atrás | |
| .env | há 4 meses atrás | |
| .gitignore | há 1 ano atrás | |
| Dockerfile | há 1 ano atrás | |
| README.md | há 1 ano atrás | |
| composer.json | há 1 ano atrás | |
| composer.lock | há 1 ano atrás | |
| cv2-api.conf | há 1 ano atrás | |
| symfony.lock | há 1 ano atrás |
Build your docker container :
docker build -t cv2-api .
Run it (name can be changed):
# On Linux
docker run -v "$(pwd)":/var/www/html -p 3001:80 --name cv2-api cv2-api
# On Windows
docker run -d -v "%cd%:/var/www/html" -p 3001:80 --name cv2-api cv2-api
Execute it and install dependencies :
docker exec -it cv2-api bash
The project will be accessible locally at : http://localhost:3000/
If you've already built your container, start it and run with :
docker start cv2-api
docker exec -it cv2-api bash