aipan-netdisk-search/docker-compose.yml

23 lines
843 B
YAML

version: "3.8" # 或者使用你需要的版本
services:
aipan-netdisk-search:
image: unilei/aipan-netdisk-search:latest # 如果你想从 Docker Hub 获取镜像,可以使用这一行
container_name: aipan-netdisk-search-app
restart: always # 确保容器在停止后自动重启
build:
context: . # 构建上下文,通常是 Dockerfile 所在的目录
dockerfile: Dockerfile # Dockerfile 的名称
args:
ADMIN_USER: ${ADMIN_USER}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
ADMIN_EMAIL: ${ADMIN_EMAIL}
JWT_SECRET: ${JWT_SECRET}
DATABASE_URL: ${DATABASE_URL}
DATABASE_SCHEMA: ${DATABASE_SCHEMA}
SHADOW_DATABASE_URL: ${SHADOW_DATABASE_URL}
ports:
- "3000:3000" # 映射容器的 3000 端口到宿主机的 3000 端口
env_file:
- .env