docker: rename docker-compose file.
Move the docker-compose file up to the root directory so you can just do `docker-compose up` to bring up Danbooru.
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# Alternatively, if you already have Docker installed, you can just do:
|
# Alternatively, if you already have Docker installed, you can just do:
|
||||||
#
|
#
|
||||||
# docker-compose -f config/docker/docker-compose.simple.yaml up
|
# docker-compose up
|
||||||
#
|
#
|
||||||
# This script is just a wrapper for that command.
|
# This script is just a wrapper for that command.
|
||||||
|
|
||||||
@@ -51,11 +51,6 @@ start_docker() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
docker_compose() {
|
|
||||||
COMPOSE_FILE="$(dirname "$(realpath "$0")")/../config/docker/docker-compose.simple.yaml"
|
|
||||||
sudo docker-compose -f "$COMPOSE_FILE" "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
install_docker_compose
|
install_docker_compose
|
||||||
start_docker
|
start_docker
|
||||||
docker_compose "${@:-up}"
|
sudo docker-compose "${@:-up}"
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
# A Docker Compose file that launches a minimal Danbooru instance. This is
|
# A Docker Compose file that launches a minimal Danbooru instance. This is
|
||||||
# suitable as a quick demo or for personal use, not for public-facing sites.
|
# suitable as a quick demo or for personal use, not for public-facing sites.
|
||||||
#
|
#
|
||||||
|
# This will start a Danbooru instance running on http://localhost.
|
||||||
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
#
|
#
|
||||||
# $ docker-compose -f config/docker/docker-compose.simple.yaml up
|
# docker-compose up
|
||||||
# $ docker-compose -f config/docker/docker-compose.simple.yaml down
|
# docker-compose down
|
||||||
#
|
#
|
||||||
# References:
|
# References:
|
||||||
#
|
#
|
||||||
Reference in New Issue
Block a user