Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
.next
.git
.turbo
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:18-alpine

WORKDIR /app

COPY . .

RUN yarn install

EXPOSE 3000

CMD ["yarn", "dev"]
4 changes: 2 additions & 2 deletions apps/X/src/components/ui/home/HomeLeft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ export const HomeLeft = () => {
</div>
</div>
</div>
</div>
</div>
);
};
};
34 changes: 34 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
services:
app:
build: .
container_name: ProjectX
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres
ports:
- 3000:3000
depends_on:
db:
condition: service_healthy
volumes:
- .:/app
working_dir: /app
command: yarn run dev

db:
image: postgres:alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5

volumes:
postgres_data: