mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
2 files changed
+9
-7
No files matched your search
+3
-3
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user