Main Dir Structure

Set Docker-Compose.yml for DB, local dev at the moment - this project
will likely end up as a 3 container setup - db - frontend - backend
This commit is contained in:
bryce
2025-06-11 17:48:06 +12:00
parent 3f1698fc38
commit 79924d3790
12 changed files with 23 additions and 0 deletions

0
.gitignore vendored Normal file
View File

0
backend/.env.example Normal file
View File

0
backend/package.json Normal file
View File

0
backend/src/app.js Normal file
View File

0
backend/src/server.js Normal file
View File

23
docker-compose.yml Normal file
View File

@@ -0,0 +1,23 @@
version: '3.8'
services:
db:
image: postgres:16-alpine
container_name: jobtracker_db_local
restart: unless-stopped
environment:
POSTGRES_DB: jobtracker
POSTGRES_USER: jobtracker.user
POSTGRES_PASSWORD: jobtracker_password
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRS_DB"]
interval: 5s
timeout: 3s
retries: 5
volumes:
db_data

0
frontend/.env.example Normal file
View File

0
frontend/package.json Normal file
View File

View File

0
frontend/src/App.jsx Normal file
View File

0
frontend/src/main.jsx Normal file
View File

View File