diff --git a/Dockerfile b/Dockerfile index ac33370..cd7cd05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,9 +45,9 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static USER nextjs -EXPOSE 3000 +EXPOSE 5643 -ENV PORT=3000 +ENV PORT=5643 # set hostname to localhost ENV HOSTNAME="0.0.0.0" diff --git a/README.md b/README.md index 32bd98f..ed21264 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ npm run docker:build # ou directement docker-compose up -d --build ``` -L'application sera accessible sur [http://localhost:3000](http://localhost:3000). +L'application sera accessible sur [http://localhost:5643](http://localhost:5643). *L'application sera attachée au réseau Docker externe `nginx_default` afin d'être exposée derrière votre reverse proxy Nginx. Assurez-vous que ce réseau existe (`docker network create nginx_default`).* diff --git a/docker-compose.yml b/docker-compose.yml index 2a7ff76..bf0c858 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: context: . dockerfile: Dockerfile ports: - - "3000:3000" + - "5643:5643" environment: - NODE_ENV=production # L'URL de la base de données peut être passée ici si nécessaire (ex: postgres://user:pass@host:5432/db)