Brijesh's Git Server — k3yst0n3 @ 47493b53290ea602660736c157d63e1fa708e704

chore: forgot to push this in previous commit

too lazy to ammend
Brijesh Wawdhane brijesh@Brijeshs-MacBook-Pro.local
Fri, 24 May 2024 18:07:04 +0530
commit

47493b53290ea602660736c157d63e1fa708e704

parent

ef65151e3c786a8927a822d95a948038bb17bde4

2 files changed, 38 insertions(+), 7 deletions(-)

jump to
A client/Dockerfile

@@ -0,0 +1,13 @@

+FROM --platform=linux/amd64 node:lts + +WORKDIR /app + +COPY package*.json ./ + +RUN npm install + +COPY . . + +EXPOSE 3000 + +CMD ["npm", "run", "dev"]
M docker-compose.yamldocker-compose.yaml

@@ -1,12 +1,6 @@

services: - server: - build: . - ports: - - "4000:4000" - volumes: - - .:/usr/src/app - command: air ./cmd/main.go -b 0.0.0.0 minio: + container_name: minio image: quay.io/minio/minio:latest command: server --console-address ":9001" /data restart: always

@@ -19,6 +13,7 @@ - "9001"

volumes: - minio-volume:/data postgres: + container_name: postgres image: postgres:alpine environment: - POSTGRES_USER=${POSTGRES_USER}

@@ -28,6 +23,29 @@ ports:

- "5432:5432" volumes: - postgres-volume:/var/lib/postgresql/data + # server: + # container_name: server + # build: . + # ports: + # - "4000:4000" + # depends_on: + # - postgres + # - minio + # volumes: + # - .:/usr/src/app + # command: air ./cmd/main.go -b 0.0.0.0 + client: + container_name: client + build: ./client + ports: + - "3000:3000" + depends_on: + # - server + - postgres + - minio + environment: + - DATABASE_URL={DATABASE_URL} + - NEXT_TELEMETRY_DISABLED=1 volumes: minio-volume: