Add playbook for homepage app deploy
This commit is contained in:
6
files/apps/homepage/docker-compose.yml
Normal file
6
files/apps/homepage/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
||||
services:
|
||||
homepage-web:
|
||||
image: "${WEB_SERVICE_IMAGE}"
|
||||
ports:
|
||||
- "127.0.0.1:${WEB_SERVICE_PORT}:80"
|
||||
restart: unless-stopped
|
11
files/yandex-docker-registry-auth.sh
Normal file
11
files/yandex-docker-registry-auth.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# See https://cloud.yandex.ru/docs/container-registry/tutorials/run-docker-on-vm#run
|
||||
|
||||
set -eu
|
||||
|
||||
curl --silent --show-error -H Metadata-Flavor:Google 169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token | \
|
||||
cut -f1 -d',' | \
|
||||
cut -f2 -d':' | \
|
||||
tr -d '"' | \
|
||||
docker login --username iam --password-stdin cr.yandex
|
Reference in New Issue
Block a user