From 425f88de147148237d27ee42972bc80a0f1e6d56 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Mon, 9 May 2022 19:15:01 -0400 Subject: [PATCH] Update for 09-05-22 19:15 --- tech/Docker.wiki | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tech/Docker.wiki b/tech/Docker.wiki index 12e32b3..6c4d5b2 100644 --- a/tech/Docker.wiki +++ b/tech/Docker.wiki @@ -14,7 +14,22 @@ the `docker` command is all thats needed to run a container. == docker-compose == Docker-compose allows you to automate setting up several containers into a -single command. +single command. + +=== ports === + +* expose a port in the container to the world +* below binds port 8080 of the container to reply to any IP on the host at port + 80 + +{{{ +ports: + - 0.0.0.0:80:8080/tcp + }}} + +=== volumes === + +* mount a folder on the filesystem inside the container == Useful commands ==