-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
39 lines (34 loc) · 1.22 KB
/
compose.yaml
File metadata and controls
39 lines (34 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# ==============================================================================
# GitChat Docker Compose 設定
# ==============================================================================
# 使い方:
# 初回: docker compose up --build
# 以降: docker compose up
# 停止: docker compose down
#
# パッケージ追加:
# docker compose exec app npm install <package-name>
#
# Prisma マイグレーション:
# docker compose exec app npx prisma migrate dev
# ==============================================================================
services:
app:
build:
context: .
container_name: gitchat-dev
ports:
- "3000:3000"
volumes:
# ソースコード同期 (ホスト ⇔ コンテナ 双方向)
# node_modules や .next もバインドマウントに含まれるため、
# コンテナ内で生成されたファイルがローカルにも同期されます
- .:/app
env_file:
- .env.local
environment:
# Windows / WSL2 環境でのファイル変更検知にポーリングを使用
- WATCHPACK_POLLING=true
- NODE_ENV=development
# 手動停止以外で異常終了した場合は自動再起動
restart: unless-stopped