Files
tweakcn/docker-compose.yml
Ronit Raj 880ec70cc3 feat: added docker (#119)
* feat: added docker

* switched env to env.local
2025-06-23 22:20:26 +05:30

32 lines
518 B
YAML

version: "3.8"
services:
app:
build: .
ports:
- "3000:3000"
env_file:
- .env.local
depends_on:
- db
volumes:
- .:/app
- /app/node_modules
command: >
sh -c "npx drizzle-kit push && npm run dev"
db:
image: postgres:15
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: tweakcn
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: