Updated specific locations to be searchable, take a look at Las Vegas as an example.
1
How should I deploy docker-compose on a remote server using github actions?
Post Body

I'm trying to figure out how to deploy my app with docker compose on a remote ubuntu server, but am having trouble wrapping my head around it (I just learned docker recently)

All of this is facilitated through github actions

My Current Deployment Pattern:

  1. On pushes to development, the actions file will trigger
  2. In this file, it will SSH into my remote ubuntu server
  3. It will run the following:
    1. pull some images from dockerhub
    2. stop rm any running containers
    3. docker run the images
  4. Nginx is configured on the server to proxy pass any traffic to the correct ports for the docker containers

With Docker Compose:

  1. I have switched from just docker to docker compose.
  2. What should my actions file look like/do?

I was thinking that after SSH-ing into the remote server, it would cd to the repo, and run the docker compose commands there.

Is there a better way to do this? I'm new to github actions too, so not sure if there is a more complete/robust way to do this.

Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
42,675
Link Karma
23,655
Comment Karma
18,693
Profile updated: 2 days ago
Posts updated: 6 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
8 months ago