This is the service directory, it includes these directories and files as bellow.
/hooks
: This is the hook actions while the service/container start/stop.
/init
: This is init scripts after the container created, is executed by ./hooks/after_start.sh
/make_app_image
: This is the sparrow-app-*
image making directory.
/make_basic_image
: This is the sparrow-basic-*
image making directory.
/templates
: this is the template directory for the service, the template
means all static and unchanging files.
conf
: This is config dir of the running service. In the docker-compose.yml
/make_app_image/Dockerfile
file in this directory, the configuration files in this directory are mapped/copied to the configuration files required by the service in the container.
By default, the configuration files in the
templates
directory will be used. If there are corresponding configuration files in theconf
directory, the configuration files in theconf
directory will be used first.
data
: This is the data storage directory for the service/container, you mustn't create any files in the data
directory, because it may cause service/container start failed.
logs
: This is the log storage directory for the service/container.
/.env
: this is the environment variables file.
/docker-compose.yml
: this is the docker-compose.yml
file.