|
|
|
@ -46,7 +46,7 @@ This is an example of ``entrypoint-config.yml`` file.
|
|
|
|
|
# Links are handled here
|
|
|
|
|
# Port, name, protocol or env variable can be used to identify the links
|
|
|
|
|
# Raise an error if the link could not be identified
|
|
|
|
|
# This not supported when using docker network or docker-compose v2.
|
|
|
|
|
# This is not supported when using docker network or docker-compose v2.
|
|
|
|
|
links:
|
|
|
|
|
'ssh':
|
|
|
|
|
port: 22
|
|
|
|
@ -70,6 +70,9 @@ This is an example of ``entrypoint-config.yml`` file.
|
|
|
|
|
post_conf_commands:
|
|
|
|
|
- echo "something else" > to_this_another_file
|
|
|
|
|
|
|
|
|
|
post_run_commands:
|
|
|
|
|
- echo run commands after started service
|
|
|
|
|
|
|
|
|
|
# Reload service when configuration change by sending a signal to process
|
|
|
|
|
reload:
|
|
|
|
|
signal: SIGHUP # Optional, signal to send, default is SIGHUP
|
|
|
|
@ -227,6 +230,18 @@ List of shell commands to run after applying configuration
|
|
|
|
|
post_conf_commands:
|
|
|
|
|
- echo "something else" > to_this_another_file
|
|
|
|
|
|
|
|
|
|
post_run_commands
|
|
|
|
|
^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
List of shell commands to run after service is started
|
|
|
|
|
|
|
|
|
|
.. code:: yaml
|
|
|
|
|
|
|
|
|
|
post_run_commands:
|
|
|
|
|
- sleep 5
|
|
|
|
|
- echo "something else" > to_this_another_file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reload
|
|
|
|
|
^^^^^^
|
|
|
|
|
|
|
|
|
|