Update docker-compose.yml for Portainer Swarm
This commit is contained in:
1 parent
b732a491c4
commit
e691fc69ff
2 files changed
+12
-7
No files matched your search
@@ -52,7 +52,7 @@ Anda **tidak perlu compile manual** sebelum deploy ke Portainer. `Dockerfile` su
|
||||
2. Isi **Name**, misalnya: `enterprisecore-erp`.
|
||||
3. Pada **Build method**, pilih **Repository**.
|
||||
4. Isi detail repository Git Anda:
|
||||
- **Repository URL**: URL repository Git Anda (contoh: `https://git.proit.id/ypratama/system-erp.git`)
|
||||
- **Repository URL**: URL repository Git Anda (contoh: `https://git.domain-anda.com/username/system-erp.git`)
|
||||
- **Authentication**: aktifkan jika repo Private (masukkan Username & Access Token).
|
||||
- **Repository reference**: `refs/heads/main`
|
||||
- **Compose path**: `docker-compose.yml`
|
||||
|
||||
+11
-6
@@ -1,10 +1,8 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
erp:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: enterprisecore_erp
|
||||
restart: unless-stopped
|
||||
image: ${ERP_IMAGE}
|
||||
ports:
|
||||
- "3005:3005"
|
||||
environment:
|
||||
@@ -12,11 +10,18 @@ services:
|
||||
PORT: "3005"
|
||||
DATABASE_URL: "file:/app/data/live.db"
|
||||
LIVE_DATABASE_URL: "file:/app/data/live.db"
|
||||
JWT_SECRET: "${JWT_SECRET:-ganti-dengan-random-secret-minimal-32-karakter}"
|
||||
JWT_SECRET: "${JWT_SECRET}"
|
||||
NEXT_PUBLIC_APP_NAME: "EnterpriseCore ERP"
|
||||
TZ: "Asia/Jakarta"
|
||||
volumes:
|
||||
- erp_data:/app/data
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
restart_policy:
|
||||
condition: any
|
||||
|
||||
volumes:
|
||||
erp_data:
|
||||
|
||||
Reference in new issue
Block a user