Upload files to "/"
add dockerfile + compose
This commit is contained in:
43
docker-compose.yml
Normal file
43
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user