Build, Tag and Push Docker Images
Edit docker-compose.yml at the root of the project and change the docker organisation name and as well as the version of the images for the api and ui
Change the frontend and backend version in their respective package.json
Build
To build the api and ui images
$ docker-compose buildRun the whole system
Before pushing the images to the repository, let's start whole system with the api, ui, postgres and redis:
$ docker-compose up -d
Creating network "starhackit_net" with the default driver
Creating starhackit_pg_1 ... done
Creating starhackit_redis_1 ... done
Creating starhackit_api_1 ... done
Creating starhackit_ui_1 ... doneOpen a web browser at the given address:
$ open http://localhost:3001/If something goes wrong, check the backend logs:
$ docker logs starhackit_api_1Push
Push the images to the docker repository:
$ docker-compose pushLast updated
Was this helpful?