-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment
You will need to setup environments before deploying. Everything explained in the backend wiki
You will also need to setup admin access to your container registry. This setting can be enabled under your Azure container registry -> settings -> Access Keys
Please take note of following information, you will need it later:
- Login server
- Username
- Password
You will need to install docker and docker-compose on your computer. Do not install docker desktop without consent from leader as docker desktop needs license. Windows users: You can install docker in WSL2 without license.
First you will need to edit the docker-compose.yaml file which is located in the project root folder. Edit image: <registry-name>.azurecr.io/verdenventer_frontend:latest
to match your login server from above. You should only need to edit <registry-name>
When you are ready to build the docker images open a terminal in the same folder as the docker-compose.yaml
file lives and use the below command:
Build both images:
docker-compose build
Build only backend:
docker-compose build backend
Build only frontend:
docker-compose build frontend
When image(s) has been built, you can push the image(s) to you Azure container registry:
Push both images:
docker-compose push
Push only backend:
docker-compose push backend
Push only frontend:
docker-compose push frontend