Update for 09-05-22 19:15
This commit is contained in:
parent
91bbc4548f
commit
425f88de14
@ -16,6 +16,21 @@ the `docker` command is all thats needed to run a container.
|
||||
Docker-compose allows you to automate setting up several containers into a
|
||||
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 ==
|
||||
|
||||
=== Get a shell on a container ===
|
||||
|
Loading…
Reference in New Issue
Block a user