port3000
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
This commit is contained in:
parent
b04f572373
commit
7295a15759
1 changed files with 6 additions and 7 deletions
|
|
@ -44,18 +44,17 @@ COPY --from=build /app/mnemo_cards_backend/data /app/data
|
||||||
RUN mkdir -p /app/isar /app/backups && \
|
RUN mkdir -p /app/isar /app/backups && \
|
||||||
chmod -R 755 /app/isar /app/backups
|
chmod -R 755 /app/isar /app/backups
|
||||||
|
|
||||||
ENV PORT=8081 \
|
ENV PORT=3000 \
|
||||||
ADDRESS=0.0.0.0 \
|
ADDRESS=0.0.0.0 \
|
||||||
ISAR_DIR=/app/isar \
|
ISAR_DIR=/app/isar \
|
||||||
BACKUP_DIR=/app/backups \
|
BACKUP_DIR=/app/backups \
|
||||||
APP_WORKDIR=/app
|
APP_WORKDIR=/app
|
||||||
|
|
||||||
EXPOSE 8081
|
EXPOSE 3000
|
||||||
|
|
||||||
# Healthcheck - use existing public endpoint
|
# Healthcheck - uses PORT env variable
|
||||||
HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=5 \
|
HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=5 \
|
||||||
CMD curl -sf http://127.0.0.1:8081/api/v2/packs || exit 1
|
CMD curl -sf http://127.0.0.1:3000/api/v2/packs || exit 1
|
||||||
|
|
||||||
# Use environment variables with fallbacks
|
# Start server on PORT (default 3000, can be overridden by Coolify)
|
||||||
# PORT env var can be overridden by Coolify/docker-compose
|
CMD sh -c "/app/server -a ${ADDRESS:-0.0.0.0} -p ${PORT:-3000} --isar ${ISAR_DIR:-/app/isar} --backup ${BACKUP_DIR:-/app/backups} --workdir ${APP_WORKDIR:-/app}"
|
||||||
CMD sh -c "/app/server -a ${ADDRESS:-0.0.0.0} -p ${PORT:-8081} --isar ${ISAR_DIR:-/app/isar} --backup ${BACKUP_DIR:-/app/backups} --workdir ${APP_WORKDIR:-/app}"
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue