Skip to content

Commit 924cfd6

Browse files
committed
Changed the new custom port env name to PAPERLESS_AI_PORT
#379
1 parent fb4e7a2 commit 924cfd6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ COPY . .
2828
# Configure persistent data volume
2929
VOLUME ["/app/data"]
3030

31-
# Configure application port - aber der tatsächliche Port wird durch PAPERLESS_PORT bestimmt
32-
EXPOSE ${PAPERLESS_PORT:-3000}
31+
# Configure application port - aber der tatsächliche Port wird durch PAPERLESS_AI_PORT bestimmt
32+
EXPOSE ${PAPERLESS_AI_PORT:-3000}
3333

3434
# Add health check with dynamic port
3535
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
36-
CMD curl -f http://localhost:${PAPERLESS_PORT:-3000}/health || exit 1
36+
CMD curl -f http://localhost:${PAPERLESS_AI_PORT:-3000}/health || exit 1
3737

3838
# Set production environment
3939
ENV NODE_ENV=production

docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ services:
1111
environment:
1212
- PUID=1000
1313
- PGID=1000
14-
- PAPERLESS_PORT=${PAPERLESS_PORT:-3000}
14+
- PAPERLESS_AI_PORT=${PAPERLESS_AI_PORT:-3000}
1515
ports:
16-
- "3000:${PAPERLESS_PORT:-3000}"
16+
- "3000:${PAPERLESS_AI_PORT:-3000}"
1717
volumes:
1818
- paperless-ai_data:/app/data
1919

server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ async function startScanning() {
371371
try {
372372
const isConfigured = await setupService.isConfigured();
373373
if (!isConfigured) {
374-
console.log(`Setup not completed. Visit http://your-machine-ip:${process.env.PAPERLESS_PORT || 3000}/setup to complete setup.`);
374+
console.log(`Setup not completed. Visit http://your-machine-ip:${process.env.PAPERLESS_AI_PORT || 3000}/setup to complete setup.`);
375375
}
376376

377377
const userId = await paperlessService.getOwnUserID();
@@ -438,7 +438,7 @@ process.on('SIGINT', () => gracefulShutdown('SIGINT'));
438438

439439
// Start server
440440
async function startServer() {
441-
const port = process.env.PAPERLESS_PORT || 3000;
441+
const port = process.env.PAPERLESS_AI_PORT || 3000;
442442
try {
443443
await initializeDataDirectory();
444444
app.listen(port, () => {

0 commit comments

Comments
 (0)