docker compose ps first and adjust the command.
postgres, use docker compose ps to find the correct
name.
--secret) for the
required build-time secrets such as DATABASE\_URL, ENCRYPTION\_KEY, REDIS\_URL,
and optional telemetry tokens.
--build-arg. Example:
```bash theme={null}
docker build \
--progress=plain \
--no-cache \
--build-arg BASE_PATH=/custom-path \
--secret id=database_url,src=<(printf "postgresql://user:password@localhost:5432/formbricks?schema=public") \
--secret id=encryption_key,src=<(printf "your-32-character-encryption-key-here") \
--secret id=redis_url,src=<(printf "redis://localhost:6379") \
--secret id=sentry_auth_token,src=<(printf "") \
-f apps/web/Dockerfile \
-t formbricks-web \
.
```
During the build logs you should see BASE PATH /custom-path, confirming that Next.js picked up the
prefix.
/custom-path requests forward to
[http://formbricks-web:3000/custom-path](http://formbricks-web:3000/custom-path) without stripping the prefix.
HUB\_API\_KEY; Hub calls taxonomy with TAXONOMY\_SERVICE\_TOKEN; taxonomy calls Hub
internal APIs with HUB\_INTERNAL\_API\_TOKEN.
docker-compose.dev.yml for local development unless you
need to fold RustFS into an existing custom Compose stack.