41 строка
1.3 KiB
YAML
41 строка
1.3 KiB
YAML
services:
|
|
deploy:
|
|
container_name: pc-apis-deploy
|
|
image: pc-apis-deploy
|
|
build:
|
|
context: ..
|
|
dockerfile: deployment/Dockerfile
|
|
environment:
|
|
- ACR_STAC_REPO=${ACR_STAC_REPO:-pccomponentstest.azurecr.io/planetary-computer-apis/stac}
|
|
- ACR_TILER_REPO=${ACR_TILER_REPO:-pccomponentstest.azurecr.io/planetary-computer-apis/tiler}
|
|
- IMAGE_TAG=${IMAGE_TAG:-latest}
|
|
- GIT_COMMIT
|
|
|
|
- ARM_SUBSCRIPTION_ID=${ARM_SUBSCRIPTION_ID:-a84a690d-585b-4c7c-80d9-851a48af5a50}
|
|
- ARM_TENANT_ID=${ARM_TENANT_ID:-72f988bf-86f1-41af-91ab-2d7cd011db47}
|
|
- ARM_CLIENT_ID
|
|
- ARM_USE_OIDC
|
|
- ARM_OIDC_TOKEN
|
|
- ACTIONS_ID_TOKEN_REQUEST_URL
|
|
- ACTIONS_ID_TOKEN_REQUEST_TOKEN
|
|
- ARM_OIDC_REQUEST_TOKEN
|
|
- ARM_OIDC_REQUEST_URL
|
|
|
|
# Used in the dev stack as an identifier
|
|
- TF_VAR_username=${USER}
|
|
|
|
# Used in function deployment injected by GH Actions
|
|
- GITHUB_TOKEN
|
|
- GITHUB_REPOSITORY
|
|
- GITHUB_ACTOR
|
|
|
|
# Used to open KV firewall for accessing tf.secrets
|
|
- KEY_VAULT_NAME=pc-test-deploy-secrets
|
|
- KEY_VAULT_RESOURCE_GROUP_NAME=pc-test-manual-resources
|
|
working_dir: /opt/src/deployment
|
|
volumes:
|
|
- ../deployment:/opt/src/deployment
|
|
- ../pccommon:/opt/src/pccommon:ro
|
|
- ../pcfuncs:/opt/src/pcfuncs:ro
|
|
- ~/.azure:/root/.azure
|