Browse Source

lets go

pull/3382/head
RCRoger 2 years ago
parent
commit
23dc06e5bd
  1. 3
      .env
  2. 2
      Dockerfile
  3. 4
      docker/docker-compose.build.yml

3
.env

@ -1,5 +1,8 @@
COMPOSE_PROJECT_NAME=ghostfolio-build
#APP
PORT=3334
# CACHE
REDIS_HOST=localhost
REDIS_PORT=6379

2
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" ]

4
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

Loading…
Cancel
Save