Selaa lähdekoodia

absolute path

Help-14 3 vuotta sitten
vanhempi
commit
34482f8485
3 muutettua tiedostoa jossa 16 lisäystä ja 14 poistoa
  1. 1 1
      .github/workflows/docker-build.yml
  2. 3 3
      docker-compose.yml
  3. 12 10
      src/themes/flame/index.html

+ 1 - 1
.github/workflows/docker-build.yml

@@ -1,4 +1,4 @@
-name: ci
+name: docker build
 
 
 on:
 on:
   push:
   push:

+ 3 - 3
docker-compose.yml

@@ -1,10 +1,10 @@
 services:
 services:
   magma:
   magma:
-    name: magma
+    container_name: magma
     image: help14/magma
     image: help14/magma
     restart: always
     restart: always
     volumes:
     volumes:
       - ./common:/app/common
       - ./common:/app/common
       #- ./themes/custom:/app/themes/custom
       #- ./themes/custom:/app/themes/custom
-    expose:
-      - 7001
+    ports:
+      - '7001:7001'

+ 12 - 10
src/themes/flame/index.html

@@ -6,15 +6,17 @@
     <title>{{.Config.Title}}</title>
     <title>{{.Config.Title}}</title>
     <meta name="description" content="{{.Config.Description}}" />
     <meta name="description" content="{{.Config.Description}}" />
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <meta name="viewport" content="width=device-width, initial-scale=1">
-    <link rel="icon" type="image/png" href="common/assets/favicon.ico" />
-    <link rel="stylesheet" href="theme/css/font.css">
-    <link rel="stylesheet" href="theme/css/normalize.min.css">
-    <link rel="stylesheet" href="theme/css/skeleton.min.css">
-    <!-- <link rel="stylesheet" href="css/charts.min.css"> -->
-    <link rel="stylesheet" href="theme/css/all.min.css">
-    <link rel="stylesheet" href="common/css/core.css">
-    <link rel="stylesheet" href="theme/css/magma.css">
-    <link rel="stylesheet" href="common/css/custom.css">
+
+    <link rel="icon" type="image/png" href="/common/assets/favicon.ico" />
+    
+    <link rel="stylesheet" href="/theme/css/font.css">
+    <link rel="stylesheet" href="/theme/css/normalize.min.css">
+    <link rel="stylesheet" href="/theme/css/skeleton.min.css">
+    
+    <link rel="stylesheet" href="/theme/css/all.min.css">
+    <link rel="stylesheet" href="/common/css/core.css">
+    <link rel="stylesheet" href="/theme/css/magma.css">
+    <link rel="stylesheet" href="/common/css/custom.css">
 </head>
 </head>
 
 
 <body>
 <body>
@@ -143,7 +145,7 @@
             document.querySelector("#weather-info").style.visibility = "visible";
             document.querySelector("#weather-info").style.visibility = "visible";
         })();
         })();
     </script>
     </script>
-    <script src="common/js/custom.js"></script>
+    <script src="/common/js/custom.js"></script>
 </body>
 </body>
 
 
 </html>
 </html>