Skip to content

Commit

Permalink
network check
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaosen7 committed Jul 10, 2024
1 parent 14585f2 commit 79eaf65
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
3 changes: 2 additions & 1 deletion apps/stackoverflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ COPY turbo.json turbo.json
RUN pnpm i --frozen-lockfile
WORKDIR /app/apps/stackoverflow
RUN pnpm prisma generate
RUN pnpm prisma db push --accept-data-loss --force-reset
RUN --network=host nc -zv 127.0.0.1 5432
# RUN pnpm prisma db push --accept-data-loss --force-reset
# RUN prisma db seed
# WORKDIR /app
# RUN turbo build --env-mode=loose --filter=stackoverflow...
Expand Down
8 changes: 0 additions & 8 deletions docker-compose.app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,3 @@ services:
- NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_c3RpcnJlZC1mbGVhLTMuY2xlcmsuYWNjb3VudHMuZGV2JA
- CLERK_SECRET_KEY=sk_test_Xx0zLQaur636egnWNgSPADqUxgT6U9vzno2DZ8W6g1
restart: always
ports:
- 3000:3001
networks:
- stack-network

networks:
stack-network:
external: true
8 changes: 0 additions & 8 deletions docker-compose.db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,9 @@ services:
POSTGRES_PASSWORD: 123456
ports:
- 5432:5432
networks:
- stack-network

adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- stack-network

networks:
stack-network:
driver: bridge

0 comments on commit 79eaf65

Please sign in to comment.