浏览代码

Change out the DB container to use the standard one we have been using in other installs. (#210)

Robert Middleswarth 3 年之前
父节点
当前提交
bc6c6f3bff
共有 3 个文件被更改,包括 35 次插入1 次删除
  1. 5 1
      stack/nginx-proxy-manager.yml
  2. 15 0
      template/portainer-v2-arm32.json
  3. 15 0
      template/portainer-v2-arm64.json

+ 5 - 1
stack/nginx-proxy-manager.yml

@@ -21,12 +21,16 @@ services:
       - 81:81
     restart: unless-stopped
   db:
-    image: jc21/mariadb-aria:latest
+    image: linuxserver/mariadb:latest
     restart: unless-stopped
     environment:
       MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
       MYSQL_DATABASE: npm
       MYSQL_USER: npm
       MYSQL_PASSWORD: ${DATABASE_PASSWORD}
+      PUID: ${USER_UID}
+      PGID: ${USER_GID}
+      TZ: ${TZ}
+
     volumes:
       - /portainer/Files/AppData/Config/nginx-proxy-manager/database:/var/lib/mysql

+ 15 - 0
template/portainer-v2-arm32.json

@@ -2984,6 +2984,21 @@
 				"443:4443/tcp"
 			],
 			"env": [
+				{
+					"default": "1000",
+					"label": "PUID",
+					"name": "PUID"
+				},
+				{
+					"default": "1000",
+					"label": "PGID",
+					"name": "PGID"
+				},
+                {
+					"default": "America/New_York",
+                    "label": "TZ",
+                    "name": "TZ"
+                },
 				{
 					"default": "password",
 					"label": "DATABASE_PASSWORD",

+ 15 - 0
template/portainer-v2-arm64.json

@@ -3084,6 +3084,21 @@
 				"443:443/tcp"
 			],
 			"env": [
+				{
+					"default": "1000",
+					"label": "PUID",
+					"name": "PUID"
+				},
+				{
+					"default": "1000",
+					"label": "PGID",
+					"name": "PGID"
+				},
+                {
+					"default": "America/New_York",
+                    "label": "TZ",
+                    "name": "TZ"
+                },
 				{
 					"default": "password",
 					"label": "DATABASE_PASSWORD",