docker update

This commit is contained in:
bagus-arie05
2025-11-25 13:50:39 +07:00
parent 94f744d036
commit 22717798ac
2 changed files with 80 additions and 24 deletions

No files matched your search

+25 -6
View File
@@ -5,22 +5,41 @@ services:
context: .
dockerfile: Dockerfile
container_name: qris_bank_jatim
user: "root"
ports:
- "3000:3000"
volumes:
- ./:/app # Mount source code ke /app dalam container
- /app/node_modules # Bind mount untuk node_modules untuk menghindari override dengan host
# Mount hanya folder project, bukan seluruh root
- ./:/app
# Keep node_modules inside container
- /app/node_modules
# SMB langsung ke public/uploads
- smb_data:/app/public/uploads
environment:
- NODE_ENV=development
- HOST=0.0.0.0
- CI=true # Menghindari TTY prompt pada Nuxt/Consola
- FOLDER_PATH=public/content
- URL_BASE=ws://10.10.150.222:8080/api/v1/ws
- QUERY=user_id=QRIS&room=BANKJATIM
env_file:
- .env
working_dir: /app
command: ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "3000"]
networks:
- qris-network
volumes:
smb_data:
driver: local
driver_opts:
type: cifs
device: "//10.10.123.49/qris"
o: "username=qris,password=mailadmin123,uid=1000,gid=1000,vers=3.0"
networks:
qris-network:
driver: bridge