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

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