From 3edbefddb5a5049a0a6d90c24be9a32467cb112b Mon Sep 17 00:00:00 2001 From: Yehoshua Sandler Date: Wed, 7 May 2025 17:23:17 -0500 Subject: [PATCH] feat: update docker compose for build --- docker-compose.yml | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8de77a7..b34cb8d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,41 +1,16 @@ services: payload: + container_name: "midrashim" image: node:18-alpine ports: - - "${PORT}:${PORT}" + - '${PORT}:${PORT}' volumes: - .:/home/node/app - node_modules:/home/node/app/node_modules working_dir: /home/node/app/ - command: sh -c "corepack enable && corepack prepare pnpm@latest --activate && pnpm install && pnpm dev" - # depends_on: - # - mongo - # - postgres + command: sh -c "npm install && npm run build && npm start" env_file: - .env - - # Ensure your DATABASE_URI uses 'mongo' as the hostname ie. mongodb://mongo/my-db-name - # mongo: - # image: mongo:latest - # ports: - # - '27017:27017' - # command: - # - --storageEngine=wiredTiger - # volumes: - # - data:/data/db - # logging: - # driver: none - - # Uncomment the following to use postgres - # postgres: - # restart: always - # image: postgres:latest - # volumes: - # - pgdata:/var/lib/postgresql/data - # ports: - # - "5432:5432" - volumes: data: - # pgdata: node_modules: