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:
evazion
2021-05-21 08:05:02 -05:00
parent 01dbd34d68
commit 3f6587089e
2 changed files with 6 additions and 9 deletions

View File

@@ -11,7 +11,7 @@
#
# 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.
@@ -51,11 +51,6 @@ start_docker() {
fi
}
docker_compose() {
COMPOSE_FILE="$(dirname "$(realpath "$0")")/../config/docker/docker-compose.simple.yaml"
sudo docker-compose -f "$COMPOSE_FILE" "$@"
}
install_docker_compose
start_docker
docker_compose "${@:-up}"
sudo docker-compose "${@:-up}"

View File

@@ -1,10 +1,12 @@
# 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.
#
# This will start a Danbooru instance running on http://localhost.
#
# Usage:
#
# $ docker-compose -f config/docker/docker-compose.simple.yaml up
# $ docker-compose -f config/docker/docker-compose.simple.yaml down
# docker-compose up
# docker-compose down
#
# References:
#