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
Build & Push Hospitality / build-and-push (push) Successful in 4m39s
This commit is contained in:
@@ -27,7 +27,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
ASPNETCORE_URLS: http://0.0.0.0:8080
|
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:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
networks:
|
networks:
|
||||||
@@ -56,6 +56,7 @@ services:
|
|||||||
- "traefik.http.routers.hospitality-dev.rule=Host(`hospitality-dev.theriise.net`)"
|
- "traefik.http.routers.hospitality-dev.rule=Host(`hospitality-dev.theriise.net`)"
|
||||||
- "traefik.http.routers.hospitality-dev.entrypoints=websecure"
|
- "traefik.http.routers.hospitality-dev.entrypoints=websecure"
|
||||||
- "traefik.http.routers.hospitality-dev.tls=true"
|
- "traefik.http.routers.hospitality-dev.tls=true"
|
||||||
|
- "traefik.http.services.hospitality-dev.loadbalancer.server.port=80"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
hospitality-dev-db-data:
|
hospitality-dev-db-data:
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ services:
|
|||||||
- "traefik.http.routers.hospitality.rule=Host(`hospitality.theriise.net`)"
|
- "traefik.http.routers.hospitality.rule=Host(`hospitality.theriise.net`)"
|
||||||
- "traefik.http.routers.hospitality.entrypoints=websecure"
|
- "traefik.http.routers.hospitality.entrypoints=websecure"
|
||||||
- "traefik.http.routers.hospitality.tls=true"
|
- "traefik.http.routers.hospitality.tls=true"
|
||||||
|
- "traefik.http.services.hospitality.loadbalancer.server.port=80"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
hospitality-db-data:
|
hospitality-db-data:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 0.0.0.0:80;
|
||||||
server_name localhost;
|
server_name _;
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user