fix: add ASPNETCORE_URLS environment variable for backend service in docker-compose.yml

This commit is contained in:
2025-12-30 21:54:46 -05:00
parent 095df2f3f3
commit c4f606ecf2
+1 -12
View File
@@ -8,6 +8,7 @@ services:
environment: environment:
ASPNETCORE_ENVIRONMENT: Production ASPNETCORE_ENVIRONMENT: Production
ConnectionStrings__DefaultConnection: "Data Source=/app/data/sharpbin.db" ConnectionStrings__DefaultConnection: "Data Source=/app/data/sharpbin.db"
ASPNETCORE_URLS: "http://+:8080"
volumes: volumes:
- sharpbin-data:/app/data - sharpbin-data:/app/data
- ./SharpbinV3.Server/appsettings.json:/app/appsettings.json - ./SharpbinV3.Server/appsettings.json:/app/appsettings.json
@@ -15,12 +16,6 @@ services:
- sharpbin-net - sharpbin-net
expose: expose:
- "8080" - "8080"
healthcheck:
test: 'wget --no-verbose --spider http://localhost:8080/health || exit 1'
interval: 30s
timeout: 30s
retries: 5
start_period: 30s
restart: unless-stopped restart: unless-stopped
frontend: frontend:
@@ -35,12 +30,6 @@ services:
- "5173:5173" - "5173:5173"
networks: networks:
- sharpbin-net - sharpbin-net
healthcheck:
test: 'wget --no-verbose --spider http://localhost:5173/health || exit 1'
interval: 30s
timeout: 30s
retries: 5
start_period: 30s
restart: unless-stopped restart: unless-stopped
volumes: volumes: