This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
rdm-dev:docker [2025/10/29 14:23] torkhov |
rdm-dev:docker [2025/11/18 13:41] (current) torkhov |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| - | [[rdm-dev: | + | [[rdm-dev: |
| + | [[rdm-dev: | ||
| + | [[rdm-dev: | ||
| + | |||
| + | |||
| + | |||
| + | Container name in Docker is: compose_stack-service-version | ||
| + | * **compose_stack** is the dir name where the docker-compose is located. Can overwrite with -p flag of the docker-compose command. | ||
| + | * **service** is the second level of declaration in the docker-compose. for ELMO it is: | ||
| + | * | ||
| + | * * services: | ||
| + | * * * db: | ||
| + | * * * web: | ||
| + | | ||
| + | * **version** is usually 1, it varies if you scale the service. | ||
| + | Have fun 🤣 and remember: | ||
| + | You can overwrite the name of a single container using the **--name** command-line flag with **docker run**, or you can use the **container_name: | ||