@ -1,5 +1,8 @@
COMPOSE_PROJECT_NAME=ghostfolio-build
#APP
PORT=3334
# CACHE
REDIS_HOST=localhost
REDIS_PORT=6379
@ -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" ]
@ -10,14 +10,14 @@ services:
REDIS_HOST: redis
REDIS_PASSWORD: ${REDIS_PASSWORD}
ports:
- 3333:3333
- ${PORT}:${PORT}
depends_on:
postgres:
condition: service_healthy
redis:
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