Browse Source

fix changes

Volovikov Alexander 1 month ago
parent
commit
8a46db6167
3 changed files with 16 additions and 2 deletions
  1. 1 1
      _Infra/.env
  2. 14 0
      _Infra/docker-compose.yaml
  3. 1 1
      _Template/index.html

+ 1 - 1
_Infra/.env

@@ -3,5 +3,5 @@ POSTGRESQL_PORT=5432
 POSTGRESQL_USER=admin
 POSTGRESQL_PASS=123456
 POSTGRESQL_EMAIL="postgress@yandex.ru"
-
+POSTGRESQL_DB=study2025
 

+ 14 - 0
_Infra/docker-compose.yaml

@@ -38,6 +38,20 @@ services:
     depends_on:
     - postgres
 
+  restapi:
+    image: postgrest/postgrest:v9.0.0
+    container_name: "restapi"
+    environment:
+      PGRST_DB_URI: postgres://${POSTGRESQL_USER}:${POSTGRESQL_PASS}@postgres:5432/${POSTGRESQL_DB}
+      PGRST_DB_SCHEMA: public
+      PGRST_DB_ANON_ROLE: ${POSTGRESQL_USER}
+    ports:
+      - "3000:3000"
+    depends_on:
+      - postgres
+    networks:
+      - pgdata
+    restart: unless-stopped
 
 networks:
   pgdata:

+ 1 - 1
_Template/index.html

@@ -3,7 +3,7 @@
 <head>
   <meta charset="UTF-8" />
   <title>Метеосистема</title>
-  <link rel="stylesheet" href="/main.css" />
+  <link rel="stylesheet" href="./main.css" />
 
   <script>
     document.addEventListener('DOMContentLoaded', () => {