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/11/18 13:34] torkhov |
rdm-dev:docker [2025/11/18 13:41] (current) torkhov |
||
|---|---|---|---|
| Line 13: | Line 13: | ||
| Container name in Docker is: compose_stack-service-version | 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. | + | * **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: | + | * * services: |
| - | db: | + | * * * db: |
| - | web: | + | * * * web: |
| | | ||
| - | **version** is usually 1, it varies if you scale the service. Have fun 🤣 | + | * **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: | ||