Upload files to "/"

add dockerfile + compose
This commit is contained in:
2025-11-14 08:30:10 +00:00
parent b5eacacef2
commit e93c2258d7
2 changed files with 108 additions and 0 deletions

43
docker-compose.yml Normal file
View File

@@ -0,0 +1,43 @@
# services:
# web:
# build:
# context: .
# dockerfile: Dockerfile
# container_name: qris_bank_jatim
# ports:
# - "3000:3000"
# volumes:
# - ./qris_bank_jatim:/app
# environment:
# - NODE_ENV=development
# command: npm run dev
# working_dir: /app
# networks:
# - qris-network
# networks:
# qris-network:
# driver: bridge
services:
web:
build:
context: .
dockerfile: Dockerfile
container_name: qris_bank_jatim
ports:
- "3000:3000"
volumes:
# Only mount source code, exclude node_modules
- ./qris_bank_jatim:/app
- /app/node_modules # Prevent host node_modules from overriding container's
environment:
- NODE_ENV=development
- HOST=0.0.0.0
working_dir: /app
networks:
- qris-network
networks:
qris-network:
driver: bridge