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
|
||||
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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user