Created
May 16, 2024 11:24
-
-
Save tazarov/9c46966de0b32a4962dcc79dce8b2646 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description = Chroma Docker Service | |
After = network.target docker.service | |
Requires = docker.service | |
[Service] | |
Type = forking | |
User = root | |
Group = root | |
WorkingDirectory = /home/admin/chroma | |
ExecStart = /usr/bin/docker compose up -d | |
ExecStop = /usr/bin/docker compose down | |
RemainAfterExit = true | |
[Install] | |
WantedBy = multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install:
wget https://gist.githubusercontent.com/tazarov/9c46966de0b32a4962dcc79dce8b2646/raw/7cf8c471f33fba8a51d6f808f9b1af6ca1b0923c/chroma-docker.service -O /etc/systemd/system/chroma.service sudo systemctl daemon-reload sudo systemctl enable chroma sudo systemctl start chroma