Skip to content

Docker Compose Remote Deploy

Actions
Deploy docker-compose with remote docker context
v1.1
Latest
Star (11)

Docker Compose Remote Action

This actions deploys your docker-compose stack file to remote host where docker-compose does not even have to be installed.

Inputs

ssh_host

Remote host where docker is running

ssh_port

SSH port on remote host

ssh_user

SSH user on remote host

ssh_key

SSH private key used to access to remote server. Better save it into repository secrets.

compose_file

Optional. Docker compose filename. Default: docker-compose.yml

service

Optional. Name of service to be deployed. By default all services are deployed.

force_recreate

Optional. Recreate containers even if compose file did not change. Default: false

pull

Optional. Pull docker images before deploying. Default: false

build

Optional. Build docker images before deploying. Default: false

options

Optional. Pass additional options to docker-compose. For example: --no-deps

Example usage

steps:
  # need checkout before using docker-compose-remote-action
  - uses: actions/checkout@v2
  - uses: chaplyk/[email protected]
    with:
      ssh_host: 127.0.0.1
      ssh_user: username
      ssh_key: ${{ secrets.SSH_KEY }}
      compose_file: docker-compose.yml
      pull: true
      build: true

Docker Compose Remote Deploy is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Deploy docker-compose with remote docker context
v1.1
Latest

Docker Compose Remote Deploy is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.