diff --git a/README.md b/README.md index 97532f0..60dbbfa 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,13 @@ # Introduction -Caddy v2 is the easiest reverse proxy ever! You'll be able to host multiple dockerized applications with one VM and one domain name! I learned from DoTheEvo https://github.com/DoTheEvo/selfhosted-apps-docker/tree/master/caddy_v2 but it wasn't as noob friendly for people new to linux or for people who have no idea what to do with their VMs. +Caddy v2 is the easiest reverse proxy ever! You'll be able to host multiple dockerized applications with one VM and one domain name! I learned from DoTheEvo https://github.com/DoTheEvo/selfhosted-apps-docker/tree/master/caddy_v2 but it wasn't as noob friendly for people new to linux or for people who have no idea what to do with their VMs. So I create this! In addition to the application specific guides on DoTheEvo's page I added some of my own! -Please start with the guide below that will take you from A to Z. +Please start with the A-Z guide below which will take you from base Ubuntu 20.04 to having docker, docker-compose, caddy v2 installed. +## A to Z Guide +From Base Ubuntu -> docker, docker-compose, caddy v2 installed. https://github.com/StarWhiz/docker_deployment_notes/tree/master/initial%20ubuntu%20setup -In addition to the application specific guides on DoTheEvo's page I added some of my own! - ## Application Specific Deployments - #### Seafile https://github.com/StarWhiz/docker_deployment_notes/tree/master/seafile @@ -38,22 +37,24 @@ docker exec -t -i CONTAINERNAME /bin/sh ``` Commands to enter a container's shell. Use bash first, if that doens't work try sh. -## Most Common Docker Commands +## Commonly used Docker Specific Commands ``` docker container ls # list all running containers docker container ls -a # list all containers even stopped ones docker container rm # remove container docker container kill # kill a running container - +docker system prune # Remove all unused docker: containers, images, networks and volumes to free up space +docker container prune # Similar to system prune but only targets containers. ### While inside app specific folder docker-compose restart # restart docker stack for application docker-compose down # turn off application docker-compose up # turn on application with logs. CTRL+C to exit docker-compose up -d # turn on application without logs and runs in background +docker-compose pull # update application ``` -## Common lines added to docker-compose.yml files +## Commonly added lines added to app specific docker-compose.yml files ``` services: exampleapp: @@ -89,6 +90,3 @@ subdomain.yourdomain.com { reverse_proxy 192.168.16.5:8080 } ``` - - -