Skip to content

Commit

Permalink
Slightly improve docker-compose feedback (#2054)
Browse files Browse the repository at this point in the history
  • Loading branch information
xeruf authored Oct 4, 2024
1 parent 5e81d9e commit 98fed80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# NOTE: This docker-compose.yml is meant to be just an example guideline
# on how you can achieve the same. It is not intented to run out of the box
# NOTE: This docker-compose.yml is an example setup.
# It is not intented to run out of the box
# and you must edit the below configurations to suit your needs.

version: "3.7"
# See https://listmonk.app/docs/installation/#manual-docker-install_1

x-app-defaults: &app-defaults
restart: unless-stopped
Expand Down
5 changes: 5 additions & 0 deletions install-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ check_dependencies() {
echo "'docker compose' functionality is not available. Please update to a newer version of Docker. See https://docs.docker.com/engine/install/ for more details."
exit 1
fi

if ! docker compose ls >/dev/null; then
echo "no docker access - you might need to run this script with sudo or see https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user"
exit 1
fi
}

check_existing_db_volume() {
Expand Down

0 comments on commit 98fed80

Please sign in to comment.