本番用Docker Compose作成
This commit is contained in:
31
docker-compose.dev.yml
Normal file
31
docker-compose.dev.yml
Normal 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:
|
||||
Reference in New Issue
Block a user