From 23dc06e5bdc98ca3245c8cabd398b512ad6495cf Mon Sep 17 00:00:00 2001 From: RCRoger Date: Sat, 10 Feb 2024 12:41:31 +0100 Subject: [PATCH] lets go --- .env | 3 +++ Dockerfile | 2 +- docker/docker-compose.build.yml | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.env b/.env index f8a2ef496..748aecc52 100644 --- a/.env +++ b/.env @@ -1,5 +1,8 @@ COMPOSE_PROJECT_NAME=ghostfolio-build +#APP +PORT=3334 + # CACHE REDIS_HOST=localhost REDIS_PORT=6379 diff --git a/Dockerfile b/Dockerfile index 1a557b8c4..31f1124e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,5 +58,5 @@ RUN apt update && apt install -y \ COPY --from=builder /ghostfolio/dist/apps /ghostfolio/apps WORKDIR /ghostfolio/apps/api -EXPOSE ${PORT:-3333} +EXPOSE ${PORT:-3334} CMD [ "yarn", "start:production" ] diff --git a/docker/docker-compose.build.yml b/docker/docker-compose.build.yml index 2ac90b7c1..d9ce70538 100644 --- a/docker/docker-compose.build.yml +++ b/docker/docker-compose.build.yml @@ -10,14 +10,14 @@ services: REDIS_HOST: redis REDIS_PASSWORD: ${REDIS_PASSWORD} ports: - - 3333:3333 + - ${PORT}:${PORT} depends_on: postgres: condition: service_healthy redis: condition: service_healthy healthcheck: - test: ['CMD-SHELL', 'curl -f http://localhost:3333/api/v1/health'] + test: ['CMD-SHELL', 'curl -f http://localhost:${PORT}/api/v1/health'] interval: 10s timeout: 5s retries: 5