mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: update application and Docker configuration to use port 80 for consistency
This commit is contained in:
parent
450b0cff29
commit
23d0ef5994
2 changed files with 5 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ COPY ./apps/api ./
|
||||||
# Run the backend
|
# Run the backend
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./extra/nginx.conf /etc/nginx/conf.d/default.conf
|
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
|
COPY ./extra/start.sh /app/start.sh
|
||||||
|
|
||||||
# Add near the end of your Dockerfile_coolify
|
# Add near the end of your Dockerfile_coolify
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- app-uploads:/app/api/content
|
- app-uploads:/app/api/content
|
||||||
ports:
|
ports:
|
||||||
- "3000"
|
- "80"
|
||||||
environment:
|
environment:
|
||||||
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
|
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
|
||||||
- NEXTAUTH_URL=${NEXTAUTH_URL}
|
- NEXTAUTH_URL=${NEXTAUTH_URL}
|
||||||
|
|
@ -45,10 +45,12 @@ services:
|
||||||
- CMD
|
- CMD
|
||||||
- curl
|
- curl
|
||||||
- '-f'
|
- '-f'
|
||||||
- 'http://127.0.0.1:3000'
|
- 'http://127.0.0.1:80'
|
||||||
interval: 2s
|
interval: 2s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
labels:
|
||||||
|
- "traefik.http.services.${DEPLOYMENT_NAME:-learnhouse}.loadbalancer.server.port=80"
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue