Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffhollan/test-express
https://github.com/jeffhollan/test-express
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jeffhollan/test-express
- Owner: jeffhollan
- Created: 2022-04-23T21:52:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-23T21:52:40.000Z (almost 3 years ago)
- Last Synced: 2025-01-23T00:45:11.064Z (5 days ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Deploy to container apps
```
RESOURCE_GROUP=aca-1
IMAGE=jeffhollan.azurecr.io/frontend:main
CONTAINERAPPS_ENVIRONMENT=myenvironment# with Docker
docker build -t jeffhollan.azurecr.io/frontend:main .
docker push# OR
az acr build -t frontend:main -r jeffhollan .
az containerapp create \
--name frontend \
--resource-group $RESOURCE_GROUP \
--image $IMAGE \
--environment $CONTAINERAPPS_ENVIRONMENT \
--ingress 'external' \
--target-port 3000
# --registry-login-server jeffhollan.azurecr.io
# --registry-username .. \
# --registry-password ..```
## Part 2
```bash
az containerapp create \
--name frontend \
--resource-group $RESOURCE_GROUP \
--image $IMAGE \
--environment $CONTAINERAPPS_ENVIRONMENT \
--ingress 'external' \
--target-port 3000 \
--environment-variables BACKEND_ADDRESS='http://backend:3000',REDIS_ADDRESS='redis:6379'
```