Created
October 3, 2018 11:55
-
-
Save g1ibby/70fd3173f46a43046db294f6b5b1b6e9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# /etc/systemd/system/docker-compose-registry.service | |
[Unit] | |
Description=Docker Compose Registry Service | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
WorkingDirectory=/home/ubuntu/registry | |
ExecStart=/usr/local/bin/docker-compose -f docker-compose.registry.yml up -d | |
ExecStop=/usr/local/bin/docker-compose -f docker-compose.registry.yml down | |
TimeoutStartSec=0 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment