Initial commit

This commit is contained in:
2024-10-27 11:04:40 -07:00
commit 15047541f4
39 changed files with 8203 additions and 0 deletions

37
docker-compose.yml Normal file
View File

@@ -0,0 +1,37 @@
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:3000' # Node.js
# - '4983:4983' # Drizzle Studio
volumes:
- .:/app
- /app/node_modules
environment:
NODE_ENV: development
command: ["sh", "-c", "pnpm db:push && pnpm run dev"]
depends_on:
- db
db:
image: postgres
restart: always
# ports:
# - 5432:5432 # DEBUG
volumes:
- postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
adminer:
image: adminer
restart: always
ports:
- 8080:8080
volumes:
postgres: