How should data only services be declared in the kontena.yml file?
I have a stack where one of my services is a pure data service, i.e it contains only front-end files (html, css, js). I would like to create an nginx service which mounts the data service so it can service its' files. The Dockerfile for the frontend service looks something like this:
COPY dist /usr/app/src
The relevant parts of my kontena.yml
One problem with the frontend service is that kontena tries to restart it all the time, presumably because it exits as soon as it starts. I would like kontena to start the service once, so nginx can mount the volume with the files from the frontend service. This sort of setup was possible in Rancher by declaring a container as "start_once" (https://docs.rancher.com/rancher/v1.2/en/cattle/labels/)
Or should I use a different approach if I want to expose my frontend files to nginx?
I'm using kontena version 1.2.0.rc1