Skip to main content
100%

Gist 20b9219bcfa5ee87411a30118d3b6163

✓ Published0🌍 Public
CCliffordAnderson
Last edited Aug 8, 2019
Created on Jul 31, 2019

This example shows a shell script that automates the deployment of a Dockerized application on a fresh Ubuntu server. The script installs Docker and Docker Compose, creates a project directory, and copies a `docker-compose.yml` file into it. It then sets up a systemd service to run the compose file on boot and starts the application. The code uses `curl` to fetch remote files, `usermod` for user permissions, and `systemctl` to enable the service, with the actual container orchestration handled by `docker-compose` and `docker` commands.

AI-generated description

Similar vizzes