Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gegere/18c37dd02c0acc6dcddf3e99c302130e to your computer and use it in GitHub Desktop.
Save gegere/18c37dd02c0acc6dcddf3e99c302130e to your computer and use it in GitHub Desktop.
# How to run docker-compose up -d at system start up?
# https://stackoverflow.com/a/43672627
#
# crontab -e
#
# Install Compose on Linux systems
# https://docs.docker.com/compose/install/#install-compose
#
#
# Install using the repository
# https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository
#
#
# How can I use docker without sudo?
# https://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo
# sudo groupadd docker
# sudo gpasswd -a $USER docker
#
#
#
52 0,12 * * * root docker exec apache_hg-web_1 certbot-auto renew --quiet
@reboot (sleep 10s ; cd /home/epic/Docker/Apache ; /usr/local/bin/docker-compose up -d )&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment