|
|
hai 4 meses | |
|---|---|---|
| bin | hai 1 ano | |
| config | hai 4 meses | |
| migrations | hai 1 ano | |
| public | hai 1 ano | |
| src | hai 4 meses | |
| static | hai 1 ano | |
| templates | hai 1 ano | |
| .env | hai 4 meses | |
| .gitignore | hai 1 ano | |
| Dockerfile | hai 1 ano | |
| README.md | hai 1 ano | |
| composer.json | hai 1 ano | |
| composer.lock | hai 1 ano | |
| cv2-api.conf | hai 1 ano | |
| symfony.lock | hai 1 ano |
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