Docker CLI

Dockerfile

docker-compose.yaml

version: DOCKER_COMPOSE_VERSION			# version>=2
services:								# version>=2
	NAME1:
		image: IMAGE1
		networks:						# version>=2
			- NETWORK1
	NAME2:
		build: PATH
		depends_on: NAME1				# version>=2
		networks:						# version>=2
			- NETWORK2
	NAME3:
		image: IMAGE3
		ports:
			- HOSTPORT:CONTAINERPORT
	    links:							# version==2
	    	- NAME1
	    	- NAME2
		networks:						# version>=2
			- NETWORK1
			- NETWORK2
networks:								# version>=2
	NETWORK1:
   	NETWORK2:

kubectl

apiVersion: v1
kind: Pod |
metadata:
	name:
	labels:
		app:
		type:
spec:
	containers:
	  - name:
		image: