gongxiangp2/docker-compose.dev.yml
2026-08-19 12:08:38 +08:00

29 lines
791 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.

name: gongxiangp2-local-dev
# 叠加在 docker-compose.local-test.yml 上使用。
# 基础文件提供隔离的 PostgreSQL、Redis、MinIO;此文件把应用切换为热更新开发模式。
services:
app:
build:
target: dev
args:
BASE_IMAGE: docker.m.daocloud.io/library/node:22-alpine
image: gongxiangp2-local-dev:latest
environment:
NODE_ENV: development
WATCHPACK_POLLING: "true"
command:
- /bin/sh
- -c
- npm run prisma:generate && npm run prisma:push && npm run dev -- --hostname 0.0.0.0
volumes:
- .:/app
- local-dev-node-modules:/app/node_modules
- local-dev-next:/app/.next
- local-dev-uploads:/app/uploads
volumes:
local-dev-node-modules:
local-dev-next:
local-dev-uploads: