-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/yutakobayashidev/parliament…
- Loading branch information
Showing
6 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!package.json | ||
!bun.lockb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM node:18-buster-slim AS base | ||
|
||
RUN apt-get update -y && apt-get install -y openssl | ||
|
||
FROM base AS dev | ||
ENV NODE_ENV=development | ||
WORKDIR /app | ||
COPY package.json ./ | ||
COPY bun.lockb ./ | ||
RUN ["npm", "install", "-g", "bun"] | ||
RUN ["bun", "install"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
services: | ||
mysql: | ||
image: mysql:8.1 | ||
volumes: | ||
- mysql_data:/var/lib/mysql | ||
environment: | ||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes | ||
command: --default-authentication-plugin=mysql_native_password | ||
ports: | ||
- 3306:3306 | ||
healthcheck: | ||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] | ||
timeout: 1s | ||
retries: 30 | ||
frontend: | ||
depends_on: | ||
mysql: | ||
condition: service_healthy | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
target: dev | ||
volumes: | ||
- type: bind | ||
source: ./ | ||
target: /app | ||
platform: linux/amd64 | ||
command: sh -c "bun run prisma-init && bun run dev" | ||
restart: always | ||
ports: | ||
- 3000:3000 | ||
|
||
volumes: | ||
mysql_data: | ||
driver: local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13b1434
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
capitalens – ./
capitalens.vercel.app
parliament-data.vercel.app
capitalens-git-main-yutakobayashi.vercel.app
capitalens-yutakobayashi.vercel.app