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 / 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
version: '3'
services:
redis-commander:
build: https://github.com/collabnix/Redisai_edgeAnalytics.git
redisedge:
build: ./redisedge
ports:
- 6379:6379
init:
@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 / gist:d9298ac93a91f369e17ae28eac03e524
Created January 19, 2023 11:58
How to Deploy a set of Microservices with a specified version using Docker?
#!/bin/bash
# Get the version of service1
version_service1=$1
# Get the version of service2
version_service2=$2
# Get any additional parameters
additional_param_1=$3
# Start service1 with the specified version