fix: update application and Docker configuration to use port 80 for consistency

This commit is contained in:
WhiteX 2025-06-12 17:07:41 +03:00 committed by rzmk
parent 450b0cff29
commit 23d0ef5994
2 changed files with 5 additions and 3 deletions

View file

@ -57,7 +57,7 @@ COPY ./apps/api ./
# Run the backend
WORKDIR /app
COPY ./extra/nginx.conf /etc/nginx/conf.d/default.conf
ENV PORT=8000 LEARNHOUSE_PORT=9000 HOSTNAME=0.0.0.0
ENV PORT=80 LEARNHOUSE_PORT=9000 HOSTNAME=0.0.0.0
COPY ./extra/start.sh /app/start.sh
# Add near the end of your Dockerfile_coolify

View file

@ -11,7 +11,7 @@ services:
volumes:
- app-uploads:/app/api/content
ports:
- "3000"
- "80"
environment:
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
- NEXTAUTH_URL=${NEXTAUTH_URL}
@ -45,10 +45,12 @@ services:
- CMD
- curl
- '-f'
- 'http://127.0.0.1:3000'
- 'http://127.0.0.1:80'
interval: 2s
timeout: 10s
retries: 10
labels:
- "traefik.http.services.${DEPLOYMENT_NAME:-learnhouse}.loadbalancer.server.port=80"
db:
image: postgres:16-alpine