mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-24 07:28:11 +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.config.ts ./
|
||||||
COPY --from=builder /app/drizzle ./drizzle
|
COPY --from=builder /app/drizzle ./drizzle
|
||||||
|
|
||||||
# Exposer le port 5000
|
# Exposer le port 5555
|
||||||
EXPOSE 5000
|
EXPOSE 5555
|
||||||
|
|
||||||
# Variables d'environnement par défaut
|
# Variables d'environnement par défaut
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV PORT=5000
|
ENV PORT=5555
|
||||||
|
|
||||||
# Démarrer l'application
|
# Démarrer l'application
|
||||||
CMD ["npm", "run", "start"]
|
CMD ["npm", "run", "start"]
|
||||||
+6
-4
@@ -31,15 +31,17 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: socialflow-app
|
container_name: socialflow-app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
# Port non exposé publiquement car nginx reverse proxy accède via le réseau Docker
|
||||||
- "${PORT:-5000}:5000"
|
# Décommentez si vous avez besoin d'accéder directement sans nginx :
|
||||||
|
# ports:
|
||||||
|
# - "${PORT:-5555}:5555"
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
PORT: 5000
|
PORT: 5555
|
||||||
DATABASE_URL: postgresql://${PGUSER:-socialflow}:${PGPASSWORD:-changeme}@postgres:5432/${PGDATABASE:-socialflow}
|
DATABASE_URL: postgresql://${PGUSER:-socialflow}:${PGPASSWORD:-changeme}@postgres:5432/${PGDATABASE:-socialflow}
|
||||||
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY}
|
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY}
|
||||||
SESSION_SECRET: ${SESSION_SECRET:-your-secret-key-change-me}
|
SESSION_SECRET: ${SESSION_SECRET:-your-secret-key-change-me}
|
||||||
APP_URL: ${APP_URL:-http://localhost:5000}
|
APP_URL: ${APP_URL:-http://localhost:5555}
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
- nginx_default
|
- nginx_default
|
||||||
|
|||||||
Reference in new issue
Block a user