An auction app made in PHP and JavaScript with Slim and React
- Initialize project
make init
- Start docker compose
make up
- Stop docker compose
make down
To install composer dependencies use docker compose run --rm api-php-cli composer
Run for first setup only:
- Run scripts from provisioning/README.md to setup vps with ansible.
- Login to docker
docker login
- Build first version
REGISTRY=docker_username IMAGE_TAG=master-1 make build
- Push images
REGISTRY=docker_username IMAGE_TAG=master-1 make push
- Deploy to vps
HOST=deploy@0.0.0.0 PORT=22 REGISTRY=azdanov IMAGE_TAG=master-1 BUILD_NUMBER=1 make deploy
Troubleshooting:
- Give missing permissions.
sudo chmod +x /usr/local/bin/docker-compose