fix: add build.args for NEXT_PUBLIC_API_URL to web service (required for Next.js compile-time inlining)
Some checks are pending
CI / Engine — lint / typecheck / test (push) Waiting to run
CI / API — lint / typecheck / test (push) Waiting to run
CI / Web — typecheck / lint / build (push) Waiting to run

This commit is contained in:
Manohar Gupta 2026-05-15 05:15:26 +00:00
parent ef3f2ace25
commit e0792a9f96

View file

@ -6,7 +6,6 @@ services:
- redis_data:/data
networks:
- internal
api:
build:
context: .
@ -20,16 +19,15 @@ services:
volumes:
- ./data:/app/data
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.api.rule=Host(`model.manohargupta.com`) && PathPrefix(`/api`)"
- "traefik.http.routers.api.entrypoints=websecure"
- "traefik.http.routers.api.tls.certresolver=letsencrypt"
- "traefik.http.services.api.loadbalancer.server.port=8000"
- traefik.enable=true
- traefik.docker.network=web
- traefik.http.routers.api.rule=Host(`model.manohargupta.com`) && PathPrefix(`/api`)
- traefik.http.routers.api.entrypoints=websecure
- traefik.http.routers.api.tls.certresolver=letsencrypt
- traefik.http.services.api.loadbalancer.server.port=8000
networks:
- internal
- web
worker:
build:
context: .
@ -45,30 +43,31 @@ services:
- ./data:/app/data
networks:
- internal
web:
build:
context: ./packages/web
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_API_URL=https://model.manohargupta.com/api
restart: unless-stopped
environment:
- NEXT_PUBLIC_API_URL=https://model.manohargupta.com/api
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.web.rule=Host(`model.manohargupta.com`)"
- "traefik.http.routers.web.entrypoints=websecure"
- "traefik.http.routers.web.tls.certresolver=letsencrypt"
- "traefik.http.services.web.loadbalancer.server.port=3000"
- traefik.enable=true
- traefik.docker.network=web
- traefik.http.routers.web.rule=Host(`model.manohargupta.com`)
- traefik.http.routers.web.entrypoints=websecure
- traefik.http.routers.web.tls.certresolver=letsencrypt
- traefik.http.services.web.loadbalancer.server.port=3000
networks:
- web
networks:
internal:
internal: true
web:
name: dokploy-network
external: true
dokploy-network:
external: true
volumes:
redis_data:
redis_data: null