本番用Docker Compose作成

This commit is contained in:
CyberRex
2026-05-25 10:01:34 +09:00
parent 40e7953ee5
commit d4918762d2
12 changed files with 183 additions and 7 deletions

31
docker-compose.dev.yml Normal file
View File

@@ -0,0 +1,31 @@
services:
app:
command: ['pnpm', 'dev']
environment:
NODE_ENV: development
HOST: 0.0.0.0
VITE_HOST: 0.0.0.0
PORT: 3000
DATABASE_URL: postgres://certremind:certremind@postgres:5432/certremind
ports:
- '127.0.0.1:5173:5173'
volumes:
- .:/app
- app-node-modules:/app/node_modules
depends_on:
postgres:
condition: service_healthy
monitor-worker:
profiles:
- worker
command: ['pnpm', 'monitor:worker']
environment:
NODE_ENV: development
DATABASE_URL: postgres://certremind:certremind@postgres:5432/certremind
volumes:
- .:/app
- app-node-modules:/app/node_modules
volumes:
app-node-modules: