Created
July 21, 2017 06:16
-
-
Save nurrony/82847622246f1329ecf3ac306b450276 to your computer and use it in GitHub Desktop.
Running Container using Systemd
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
| Description=My Containerized App | |
| After=docker.service | |
| Requires=docker.service | |
| [Service] | |
| TimeoutStartSec=0 | |
| Restart=always | |
| ExecStartPre=-/usr/local/bin/docker-compose -f /path/to/docker-compose.yml down | |
| ExecStart=/usr/local/bin/docker-compose -f /path/to/docker-compose.yml up -d | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment