-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from jungvengers/feature/migrate-db
feat: migrate mysql to postgres
- Loading branch information
Showing
111 changed files
with
10,915 additions
and
51,807 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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
FROM node:18 | ||
FROM node:lts-alpine | ||
|
||
WORKDIR /app | ||
|
||
RUN corepack enable | ||
|
||
COPY . . | ||
RUN yarn global add lerna | ||
RUN lerna bootstrap | ||
RUN lerna run build | ||
RUN corepack up | ||
RUN pnpm install | ||
RUN pnpm build | ||
|
||
CMD [ "lerna", "run", "start", "--scope=server" ] | ||
CMD [ "pnpm", "--filter=server", "start" ] |
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 |
---|---|---|
@@ -1,14 +1,24 @@ | ||
version: '2.0' | ||
version: "3.0" | ||
|
||
services: | ||
server: | ||
image: 'ghcr.io/jungvengers/sunrinsecurity-backend-v3:master' | ||
image: "ghcr.io/jungvengers/sunrinsecurity-backend-v3:master" | ||
env_file: | ||
- .env | ||
- packages/server/.env | ||
environment: | ||
- PORT=3000 | ||
ports: | ||
- 3000:3000 | ||
extra_hosts: | ||
- host.docker.internal:host-gateway | ||
- host.docker.internal:host-gateway | ||
depends_on: | ||
- db | ||
db: | ||
image: postgres:15 | ||
restart: always | ||
volumes: | ||
- ./postgres-data:/var/lib/postgresql/data | ||
ports: | ||
- "5432:5432" | ||
env_file: | ||
- .env |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.