mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-04-10 12:56:40 +00:00
docker: add compose profiles notes
This commit is contained in:
parent
48a415e7e4
commit
3324f62885
1 changed files with 2 additions and 0 deletions
|
@ -305,6 +305,8 @@ services:
|
|||
extra_hosts: # add hostname mappings to container network interface config
|
||||
- <hostname>:<ip>
|
||||
- <hostname>:host-gateway # map host machine network
|
||||
profiles: # partition services into sets
|
||||
- <profile_name>
|
||||
networks: # attach container to one or more networks
|
||||
- <network_name>
|
||||
depends_on: # make sure dependencies are running before this container
|
||||
|
|
Loading…
Add table
Reference in a new issue