Created
January 28, 2017 13:11
-
-
Save rgaidot/3300ffff429f7fd9da45da853dd1645b to your computer and use it in GitHub Desktop.
Docker Compose on CoreOS
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=Docker Compose on CoreOS | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
TimeoutStartSec=0 | |
Environment=COMPOSE_VERSION="1.10.0" | |
ExecStartPre=-/usr/bin/sudo /usr/bin/sh -c "/usr/bin/mkdir -p /opt/bin" | |
ExecStartPre=-/usr/bin/sudo /usr/bin/sh -c "usr/bin/mkdir -p /opt/docker" | |
ExecStartPre=-/usr/bin/sudo /usr/bin/sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /opt/docker/docker-compose_${COMPOSE_VERSION}" | |
ExecStartPre=-/usr/bin/sudo /usr/bin/sh -c "/usr/bin/chmod +x /opt/docker/docker-compose_${COMPOSE_VERSION}" | |
ExecStartPre=/usr/bin/sudo /usr/bin/sh -c "/usr/bin/ln -f -s /opt/docker/docker-compose_${COMPOSE_VERSION} /opt/bin/docker-compose" | |
ExecStart=/opt/bin/docker-compose -v | |
[X-Fleet] | |
Global=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment