Skip to content

Instantly share code, notes, and snippets.

View bkatiemills's full-sized avatar
💭
pushing pixels farming bits

Bill Katie-Anne Mills bkatiemills

💭
pushing pixels farming bits
View GitHub Profile
@bkatiemills
bkatiemills / bb-stack.yaml
Last active March 14, 2019 19:49
bulletin board stack file solution part 2
version: '3.7'
services:
bb-app:
image: ${dockerId}/bb-app:v2
networks:
- bb-net
bb-db:
image: ${dockerId}/bb-db:v2
networks:
@bkatiemills
bkatiemills / bb-stack.yaml
Last active March 14, 2019 19:43
bulletin board stack file solution part 1
version: '3.7'
services:
bb-app:
image: ${dockerId}/bb-app:v2
networks:
- bb-net
ports:
- "8080:8080"
bb-db:
# 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 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
---
# 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
version: '3.1'
services:
minio1:
image: minio/minio:RELEASE.2018-10-18T00-28-58Z
hostname: minio1
volumes:
- minio1-data:/export
ports:
- "9001:9000"
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: who-1
namespace: default
labels:
app: who-1
spec:
replicas: 1
selector:
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: default-http-backend
labels:
app: default-http-backend
namespace: ingressnginx
spec:
replicas: 1
selector:
version: 0.1
log:
level: info
storage:
delete:
enabled: true
filesystem:
rootdirectory: /var/lib/registry
http:
addr: 0.0.0.0:443
version: "3.3"
services:
cache:
image: docker/dtr-content-cache:2.6.0-beta3
entrypoint:
- /start.sh
- "/config.yml"
ports:
- 443:443
deploy: