Configure application to use a specific port and internal network

Updates Dockerfile and docker-compose.yml to expose port 4523 for the application and ensures it communicates with PostgreSQL over an internal Docker network.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/MNNRXY7
This commit is contained in:
michaelschal committed 2025-10-17 11:10:50 +00:00
1 parent 1c0e24ece7
commit 9ae2f6b3f2
4 files changed
+223 -15

No files matched your search

+10 -10
View File
@@ -31,20 +31,19 @@ services:
dockerfile: Dockerfile
container_name: socialflow-app
restart: unless-stopped
# Port non exposé publiquement car nginx reverse proxy accède via le réseau Docker
# Décommentez si vous avez besoin d'accéder directement sans nginx :
# ports:
# - "${PORT:-5555}:5555"
ports:
- "4523:4523"
environment:
NODE_ENV: production
PORT: 5555
PORT: 4523
DATABASE_URL: postgresql://${PGUSER:-socialflow}:${PGPASSWORD:-changeme}@postgres:5432/${PGDATABASE:-socialflow}
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY}
SESSION_SECRET: ${SESSION_SECRET:-your-secret-key-change-me}
APP_URL: ${APP_URL:-http://localhost:5555}
APP_URL: ${APP_URL:-http://localhost:4523}
networks:
- internal
- nginx_default
# Décommentez la ligne suivante si vous utilisez Nginx reverse proxy :
# - nginx_default
depends_on:
postgres:
condition: service_healthy
@@ -59,6 +58,7 @@ networks:
internal:
driver: bridge
# Réseau externe pour nginx reverse proxy
nginx_default:
external: true
# Réseau externe pour nginx reverse proxy (optionnel)
# Décommentez si vous utilisez Nginx :
# nginx_default:
# external: true