Fix gitignore and update docker-compose.yml
This commit is contained in:
1 parent
8a04f517da
commit
ee28968a70
2 files changed
+23
No files matched your search
BIN
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
inventory-app:
|
||||
image: inventory-app:latest
|
||||
container_name: portal-inventory
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- DATABASE_URL=file:/app/dev.db
|
||||
- SESSION_SECRET=ganti_dengan_rahasia_acak_anda
|
||||
volumes:
|
||||
# PENTING: Ganti '/opt/inventory' dengan lokasi folder Anda di VPS Node Manager
|
||||
- /opt/inventory/dev.db:/app/dev.db
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
Reference in new issue
Block a user