User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
services:endurain [2025/05/21 08:48] willyservices:endurain [2025/11/06 11:09] (current) – [Reverse Proxy] willy
Line 28: Line 28:
       - SECRET_KEY=<< see below >>       - SECRET_KEY=<< see below >>
       - FERNET_KEY=<< see below >>       - FERNET_KEY=<< see below >>
-      - GEOCODES_MAPS_API=+      - GEOCODES_MAPS_API=<< see below >>
       - ENDURAIN_HOST=https://train.mydomain.com       - ENDURAIN_HOST=https://train.mydomain.com
       - UID=0       - UID=0
Line 34: Line 34:
       - BEHIND_PROXY=true       - BEHIND_PROXY=true
     volumes:     volumes:
-      - /data/endurain/backend/user_images:/app/backend/user_images # necessary for user image persistence on container image updates 
-      - /data/endurain/backend/files/bulk_import:/app/backend/files/bulk_import # necessary to enable bulk import of activities. Place here your activities files 
-      - /data/endurain/backend/files/processed:/app/backend/files/processed # necessary for processed original files persistence on container image updates 
       - /var/log/endurain:/app/backend/logs # log files for the backend       - /var/log/endurain:/app/backend/logs # log files for the backend
 +      - /data/endurain/data:/app/backend/data # necessary for activity files, user images and server images persistence on container image updates
     ports:     ports:
       - "5123:8080"       - "5123:8080"
Line 46: Line 44:
      
   postgres:   postgres:
-    image: postgres:latest+    image: docker.io/postgres:17.5
     container_name: postgres     container_name: postgres
     environment:     environment:
Line 74: Line 72:
 </code> </code>
  
-The **GEOCODES_MAPS_API** is not needed if the 1request/second, 5000 request/day limit is enough for you. Otherwise, you need to upgrade to a paid plan on [[https://geocode.maps.co/|Geocode]].+The **GEOCODES_MAPS_API** is needed even if the 1request/second, 5000 request/day limit is enough for you. Otherwise, you need to upgrade to a paid plan on [[https://geocode.maps.co/|Geocode]]. To get the key just do the free registration and get the key.
  
 Volumes will be mounted under **/data/endurain**. Volumes will be mounted under **/data/endurain**.
Line 85: Line 83:
 <code bash> <code bash>
 podman compose pull podman compose pull
 +podman compose up
 </code> </code>
  
 +Please note that due to database initialization time, the first startup might fail on the Endurain app. In this case let the database initialize properly, shut down and restart the containers.
  
  
Line 113: Line 113:
                 proxy_set_header  X-Forwarded-Host $server_name;                 proxy_set_header  X-Forwarded-Host $server_name;
                 proxy_set_header  X-Forwarded-Proto $scheme;                 proxy_set_header  X-Forwarded-Proto $scheme;
 +                proxy_http_version 1.1;
 +                proxy_set_header Upgrade $http_upgrade;
 +                proxy_set_header Connection $http_connection;
         }         }