Skip to content

Commit 0eef214

Browse files
committed
fix docker image and docker compose
1 parent c189ebc commit 0eef214

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

deploy/Dockerfile-FE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
ARG NODE_VERSION=22.9.0
22
FROM node:${NODE_VERSION}-slim AS base
33

4-
ARG PORT=3000
5-
64
ENV NODE_ENV=production
75

86
WORKDIR /src
@@ -21,6 +19,8 @@ RUN npm prune
2119
# Run
2220
FROM base
2321

22+
EXPOSE 3000
23+
2424
COPY --from=build /src/.output /src/.output
2525

2626
CMD [ "node", ".output/server/index.mjs" ]

deploy/docker-compose.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ services:
88
ports:
99
- 5432:5432
1010
healthcheck:
11-
test: ["CMD", "pg_isready", "-d", "ghost", "-U", "postgres"]
11+
test: ["CMD", "pg_isready", "-d", "ghostsend", "-U", "postgres"]
1212
interval: 10s
1313
timeout: 5s
1414
retries: 5
15-
environment:
16-
- POSTGRES_PASSWORD=postgres
17-
- POSTGRES_USER=postgres
18-
- POSTGRES_DB=ghost
15+
env_file:
16+
- ../.env
1917

2018
frontend:
2119
image: cksidharthan/ghostsend-frontend:latest

0 commit comments

Comments
 (0)