forked from knadh/listmonk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-demo.sh
More file actions
executable file
·40 lines (30 loc) · 793 Bytes
/
install-demo.sh
File metadata and controls
executable file
·40 lines (30 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
set -e
# Listmonk demo setup using `docker-compose`.
#
# See https://listmonk.app/docs/installation/ for detailed installation steps.
#
check_dependency() {
if ! command -v curl > /dev/null; then
echo "curl is not installed."
exit 1
fi
if ! command -v docker > /dev/null; then
echo "docker is not installed."
exit 1
fi
if ! command -v docker-compose > /dev/null; then
echo "docker-compose is not installed."
exit 1
fi
}
setup_containers() {
curl -o docker-compose.yml https://raw.githubusercontent.com/knadh/listmonk/master/docker-compose.yml
docker-compose up -d demo-db demo-app
}
show_output(){
echo -e "\nListmonk is now up and running. Visit http://localhost:9000 in your browser.\n"
}
check_dependency
setup_containers
show_output