Merge pull request #4 from R0m1k3/dev

Dev
This commit is contained in:
LogiFlow authored and GitHub committed 2025-10-01 16:38:42 +02:00
commit fde270a233
2 files changed
+9 -7

No files matched your search

+3 -3
View File
@@ -40,12 +40,12 @@ COPY --from=builder /app/shared ./shared
COPY --from=builder /app/drizzle.config.ts ./
COPY --from=builder /app/drizzle ./drizzle
# Exposer le port 5000
EXPOSE 5000
# Exposer le port 5555
EXPOSE 5555
# Variables d'environnement par défaut
ENV NODE_ENV=production
ENV PORT=5000
ENV PORT=5555
# Démarrer l'application
CMD ["npm", "run", "start"]
+6 -4
View File
@@ -31,15 +31,17 @@ services:
dockerfile: Dockerfile
container_name: socialflow-app
restart: unless-stopped
ports:
- "${PORT:-5000}:5000"
# 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"
environment:
NODE_ENV: production
PORT: 5000
PORT: 5555
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:5000}
APP_URL: ${APP_URL:-http://localhost:5555}
networks:
- internal
- nginx_default