[Unit] Description=API After=postgresql.service [Service] User=my-app RootImage=/opt/app/components/api.sqfs ExecStart=/bin/container-entrypoint.sh EnvironmentFile=/etc/app/api.env # Persistent storage BindPaths=/opt/core/data # DNS BindReadOnlyPaths=/etc/hosts BindReadOnlyPaths=/etc/resolv.conf [Install] WantedBy=multi-user.target