Service Files are files that can be used to customize a Service. Some Service Files are created when the Service is created — others are created later. For example, every time a Site is added, a Service File is added to the Environment's Service Proxy to manage the NGINX configuration for the site.
Here’s an example of what a customization that a user could make using Service Files.
Service Files can only be created through actions performed on an environment. Users cannot explicitly add Service Files to a service, instead Service Files are added by the following actions:
- When a new service is created
- When a new
siteis added via the Datica CLI
Please note: Service Files are added to Containers when they’re created. What this means is that Service File changes aren’t immediately propagated to all containers - the Service must be redeployed to get the new version.
Service Files can be managed in two ways:
- Through the Platform Dashboard. To view, download or edit a service navigate to the service in question by clicking “View Environment Details” from the dashboard. Next find the service you need and click “View details”. Once you’re inside the services details view, select the Files tab from the navigation menu.
- With the Platform CLI. To list files with the CLI: datica files list. To download the contents of a Service File with the CLI: datica files download.