Skip to content

Instantly share code, notes, and snippets.

View collabnix's full-sized avatar
🐳
Docker ! Docker ! Docker !

Collabnix collabnix

🐳
Docker ! Docker ! Docker !
View GitHub Profile
@collabnix
collabnix / local-volume.yaml
Created December 15, 2017 10:47
A First Look at Kubernetes Integrated Docker For Mac Platform
apiVersion: v1
kind: PersistentVolume
metadata:
name: local-pv-1
labels:
type: local
spec:
capacity:
storage: 20Gi
accessModes:
@collabnix
collabnix / mysql-deployment.yaml
Created December 15, 2017 14:04
A First Look at Kubernetes Integrated Docker For Mac Platform
apiVersion: v1
kind: Service
metadata:
name: wordpress-mysql
labels:
app: wordpress
spec:
ports:
- port: 3306
selector:
@collabnix
collabnix / wordpress-deployment.yaml
Created December 15, 2017 14:11
A First Look at Kubernetes Integrated Docker for Mac 17.12 Platform
apiVersion: v1
kind: Service
metadata:
name: wordpress
labels:
app: wordpress
spec:
ports:
- port: 80
selector:
@collabnix
collabnix / install-client-bundle.sh
Created October 19, 2018 11:05
Installing Docker Client Bundle for Docker Enterprise 2.0
#Download client certificates by using the REST API
#You can also download client bundles by using the UCP REST API. In this example, we use curl to make the web requests to the API, jq to parse the responses, and unzip to unpack the zip archive.
#To install these tools on an Ubuntu distribution, you can run:
sudo apt-get update && sudo apt-get install curl jq unzip
# Create an environment variable with the user security token
AUTHTOKEN=$(curl -sk -d '{"username":"<username>","password":"<password>"}' https://<ucp-ip>/auth/login | jq -r .auth_token)
@collabnix
collabnix / nginx.yaml
Created September 2, 2020 07:15
Deploying NGINX using Portainer 2.0 UI
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: nginx
spec:
strategy:
type: Recreate
selector:
matchLabels:
@collabnix
collabnix / gist:23291139ce594bb27db7220f48692781
Created September 2, 2020 07:20
Deploying MySQL with StatefulSet using Portainer 2.0 CE UI
apiVersion: v1
kind: Service
metadata:
name: wordpress-mysql
labels:
app: wordpress
spec:
ports:
- port: 3306
selector:
@collabnix
collabnix / gist:03ca1a4dd1b21ea43bb0d820ce74d4c0
Created September 2, 2020 07:22
Deploying WordPress with StatefulSet using Portainer 2.0 CE
apiVersion: v1
kind: Service
metadata:
name: wordpress
labels:
app: wordpress
spec:
ports:
- port: 80
selector:
@collabnix
collabnix / gist:2a61843849fd2109b44061f8049e85b3
Created September 4, 2020 06:00
2 Minutes to Minecraft Server using Docker
docker run -d -p 25565:25565 -e EULA=true -e ONLINE_MODE=false -e DIFFICULTY=hard -e OPS=Gurvira3 -e MAX_PLAYERS=50 -e 'MOTD=Welcome to Gurvira World' --name mc itzg/minecraft-server
@collabnix
collabnix / compose-on-jetson.txt
Last active May 22, 2024 07:21
Installing Docker Compose on NVIDIA Jetson Nano
NVIDIA Jetson Nano SD card image comes with Docker binaries installed. You an verify it:
root@pico1:/home/pico# docker version
Client:
Version: 19.03.6
API version: 1.40
Go version: go1.12.17
Git commit: 369ce74a3c
Built: Fri Feb 28 23:47:53 2020
version: '3'
services:
redis-commander:
build: https://github.com/collabnix/Redisai_edgeAnalytics.git
redisedge:
build: ./redisedge
ports:
- 6379:6379
init: