Last active
November 24, 2019 13:26
-
-
Save Kaijun/05a23f58755cc9b0b040bcaf4a2f235b 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
$ sudo vim /etc/systemd/system/docker-compose.service | |
[Unit] | |
Description=DockerCompose | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
ExecStart=/opt/bin/docker-compose -f /home/core/docker-compose.yml up -d | |
[Install] | |
WantedBy=multi-user.target | |
$ sudo systemctl enable /etc/systemd/system/docker-compose.service | |
$ sudo systemctl start docker-compose.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment