This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
bb-app: | |
image: ${dockerId}/bb-app:v2 | |
networks: | |
- bb-net | |
bb-db: | |
image: ${dockerId}/bb-db:v2 | |
networks: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
bb-app: | |
image: ${dockerId}/bb-app:v2 | |
networks: | |
- bb-net | |
ports: | |
- "8080:8080" | |
bb-db: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use your UCP username and password to acquire a UCP API auth token | |
AUTHTOKEN=$(curl -sk -d '{"username":"admin","password":"adminadmin"}' https://${UCP_FQDN}/auth/login | jq -r .auth_token) | |
# make your life easy by creating a curl alias that automatically uses your auth token: | |
alias ucp-api='curl -k -H "Authorization: Bearer $AUTHTOKEN"' | |
# download and initialize the client bundle authorizing action based on the permissions of the user who fetched the auth token above | |
mkdir ~/clientbundle ; cd ~/clientbundle | |
ucp-api https://${UCP_FQDN}/api/clientbundle -o bundle.zip | |
unzip bundle.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This section contains your application metadata. | |
version: 0.1.0 | |
name: hello | |
description: "an app file demo" | |
maintainers: | |
- name: moby | |
email: "[email protected]" | |
targets: | |
swarm: true | |
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a minimal minio deployment, for demonstration purposes only. Don't put all replicas on one node in real life, please! Spread them across a cluster for HA. | |
echo "password" | docker secret create access_key - | |
echo "password" | docker secret create secret_key - | |
docker node update --label-add minio1=true infra | |
docker node update --label-add minio2=true infra | |
docker node update --label-add minio3=true infra | |
docker node update --label-add minio4=true infra |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
minio1: | |
image: minio/minio:RELEASE.2018-10-18T00-28-58Z | |
hostname: minio1 | |
volumes: | |
- minio1-data:/export | |
ports: | |
- "9001:9000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1beta2 | |
kind: Deployment | |
metadata: | |
name: who-1 | |
namespace: default | |
labels: | |
app: who-1 | |
spec: | |
replicas: 1 | |
selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1beta2 | |
kind: Deployment | |
metadata: | |
name: default-http-backend | |
labels: | |
app: default-http-backend | |
namespace: ingressnginx | |
spec: | |
replicas: 1 | |
selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 0.1 | |
log: | |
level: info | |
storage: | |
delete: | |
enabled: true | |
filesystem: | |
rootdirectory: /var/lib/registry | |
http: | |
addr: 0.0.0.0:443 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
services: | |
cache: | |
image: docker/dtr-content-cache:2.6.0-beta3 | |
entrypoint: | |
- /start.sh | |
- "/config.yml" | |
ports: | |
- 443:443 | |
deploy: |