MicroFish/docker-compose.yml

21 lines
794 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

services:
mirofish:
image: ghcr.io/666ghj/mirofish:latest
# 加速镜像(如拉取缓慢可替换上方地址)
# image: ghcr.nju.edu.cn/666ghj/mirofish:latest
# C2本地构建以把前端 API Key 烤进打包产物。`docker compose up --build` 会用根 .env 里的
# VITE_API_KEY 作为 build-arg若直接拉取上方预构建镜像不 --build其内置的 key 不可控,
# 此时请改用 AUTH_ENABLED=false单机/内网)或自行构建带 VITE_API_KEY 的镜像。
build:
context: .
args:
VITE_API_KEY: ${VITE_API_KEY:-}
container_name: mirofish
env_file:
- .env
ports:
- "3000:3000"
- "5001:5001"
restart: unless-stopped
volumes:
- ./backend/uploads:/app/backend/uploads