Explorar el Código

Migrate to a stack to enable some caps

Robert Middleswarth hace 2 años
padre
commit
6e1c953e9e
Se han modificado 2 ficheros con 22 adiciones y 4 borrados
  1. 15 0
      stack/chrony-ntp.yml
  2. 7 4
      template/apps/chrony-ntp.json

+ 15 - 0
stack/chrony-ntp.yml

@@ -0,0 +1,15 @@
+version: "3.8"
+services:
+  chrony-ntp:
+    environment:
+      - NTP_SERVERS=${NTP_SERVERS}
+      - LOG_LEVEL=${LOG_LEVEL}
+    image: cturra/ntp:latest
+    container_name: chrony-ntp
+    ports:
+      - "123:123/udp"
+    restart: unless-stopped
+    cap_add:
+      - SYS_NICE
+      - SYS_RESOURCE
+      - SYS_TIME

+ 7 - 4
template/apps/chrony-ntp.json

@@ -17,9 +17,12 @@
                         "name": "NTP_SERVERS"
                 }
         ],
-	"image_arm32": "cturra/ntp:latest",
-	"image_arm64": "cturra/ntp:latest",
-	"image_amd64": "cturra/ntp:latest",
+        "repository": {
+                "stackfile_arm32": "stack/chrony-ntp.yml",
+                "stackfile_arm64": "stack/chrony-ntp.yml",
+                "stackfile_amd64": "stack/chrony-ntp.yml",
+                "url": "https://github.com/pi-hosted/pi-hosted/"
+        },
 	"logo": "https://raw.githubusercontent.com/pi-hosted/pi-hosted/master/images/chrony.png",
 	"name": "chrony-ntp",
 	"officialDoc": "https://github.com/cturra/docker-ntp/blob/main/README.md",
@@ -29,6 +32,6 @@
 	],
 	"restart_policy": "unless-stopped",
 	"title": "Chrony NTP",
-	"type": 1,
+	"type": 3,
 	"webpage": "https://github.com/cturra/docker-ntp"
 }