Compare commits

...
2 Commits
3 changed files with 51 additions and 1 deletions

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
[submodule "miyouqian/upstream"]
path = miyouqian/upstream
url = https://github.com/Marchen-orz/MiyoQian.git
branch = master
+13 -1
View File
@@ -4,12 +4,24 @@ set -euo pipefail
SCRIPT_DIR="$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")"
STACKS_DIR="${STACKS_DIR:-$SCRIPT_DIR}"
docker_args=(--rm -v "$STACKS_DIR:/app")
dclint_args=(. -r)
dclint_args=()
if [[ -t 1 ]]; then
docker_args+=(-t)
fi
# Scan immediate stack directories without recursing into their subdirectories.
shopt -s nullglob
for stack_dir in "$STACKS_DIR"/*/; do
stack_dir="${stack_dir%/}"
dclint_args+=("/app/${stack_dir##*/}")
done
if ((${#dclint_args[@]} == 0)); then
printf 'No stack directories found in %s\n' "$STACKS_DIR" >&2
exit 1
fi
case "${1:-}" in
"")
;;
+34
View File
@@ -0,0 +1,34 @@
name: miyouqian
services:
miyouqian:
build:
context: ./upstream
dockerfile: docker/Dockerfile
container_name: miyouqian
volumes:
- /srv/data/miyouqian:/app/state
environment:
TZ: Asia/Shanghai
networks:
- proxy
restart: unless-stopped
cap_drop:
- ALL
deploy:
resources:
limits:
cpus: "0.5"
memory: 256M
reservations:
cpus: "0.1"
memory: 64M
init: true
read_only: true
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp
networks:
proxy:
external: true