mirror of
https://github.com/jnsahaj/tweakcn.git
synced 2026-08-28 23:02:07 +08:00
880ec70cc3
* feat: added docker * switched env to env.local
32 lines
518 B
YAML
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:
|