config: Adjust Nginx listening address, explicitly set Traefik service ports for dev and prod, and rename the dev connection string key.
Build & Push Hospitality / build-and-push (push) Successful in 4m39s

This commit is contained in:
steinhelge
2025-11-26 21:48:02 +01:00
parent 63eb33a8c9
commit 1ff03552ea
3 changed files with 5 additions and 3 deletions
@@ -27,7 +27,7 @@ services:
restart: unless-stopped
environment:
ASPNETCORE_URLS: http://0.0.0.0:8080
ConnectionStrings__Default: "Host=db;Port=5432;Database=hospitality_dev;Username=hospitality_dev;Password=devpassword"
ConnectionStrings__DefaultConnection: "Host=db;Port=5432;Database=hospitality_dev;Username=hospitality_dev;Password=devpassword"
depends_on:
- db
networks:
@@ -56,6 +56,7 @@ services:
- "traefik.http.routers.hospitality-dev.rule=Host(`hospitality-dev.theriise.net`)"
- "traefik.http.routers.hospitality-dev.entrypoints=websecure"
- "traefik.http.routers.hospitality-dev.tls=true"
- "traefik.http.services.hospitality-dev.loadbalancer.server.port=80"
volumes:
hospitality-dev-db-data:
@@ -56,6 +56,7 @@ services:
- "traefik.http.routers.hospitality.rule=Host(`hospitality.theriise.net`)"
- "traefik.http.routers.hospitality.entrypoints=websecure"
- "traefik.http.routers.hospitality.tls=true"
- "traefik.http.services.hospitality.loadbalancer.server.port=80"
volumes:
hospitality-db-data:
+2 -2
View File
@@ -1,6 +1,6 @@
server {
listen 80;
server_name localhost;
listen 0.0.0.0:80;
server_name _;
root /usr/share/nginx/html;
index index.html;