Skip to content

Commit

Permalink
Updated services ports
Browse files Browse the repository at this point in the history
  • Loading branch information
NuroDev committed Jul 20, 2024
1 parent e647db4 commit 13011fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
container_name: swarmy-api
restart: unless-stopped
ports:
- 3000:3000
- 4000:4000

web:
build:
Expand All @@ -16,4 +16,4 @@ services:
platform: linux/amd64
restart: unless-stopped
ports:
- 4321:4321
- 3000:3000
2 changes: 1 addition & 1 deletion services/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .
COPY --from=prod-deps /tmp/prod/node_modules node_modules
COPY --from=build /usr/src/app/services/api/ ./services/api/

EXPOSE 3000/tcp
EXPOSE 4000/tcp

ENTRYPOINT [ "pnpm", "run", "--filter", "api", "start" ]

Expand Down
2 changes: 1 addition & 1 deletion services/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { showRoutes } from "hono/dev";

import { app } from "./router";

const PORT = process.env.PORT ? Number(process.env.PORT) : 3000;
const PORT = process.env.PORT ? Number(process.env.PORT) : 4000;
const server = serve({
fetch: app.fetch,
port: PORT,
Expand Down
3 changes: 2 additions & 1 deletion services/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ COPY --from=build /usr/src/app/services/web/dist ./dist
ENV API_URL=http://api:3000/
ENV HOST=0.0.0.0
ENV NODE_ENV=production
ENV PORT=3000

EXPOSE 4321/tcp
EXPOSE 3000/tcp

ENTRYPOINT [ "pnpm", "run", "start" ]

Expand Down

0 comments on commit 13011fa

Please sign in to comment.