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:
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
0
backend/.env.example
Normal file
0
backend/.env.example
Normal file
0
backend/package.json
Normal file
0
backend/package.json
Normal file
0
backend/src/app.js
Normal file
0
backend/src/app.js
Normal file
0
backend/src/server.js
Normal file
0
backend/src/server.js
Normal file
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal 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
0
frontend/.env.example
Normal file
0
frontend/package.json
Normal file
0
frontend/package.json
Normal file
0
frontend/postcss.config.js
Normal file
0
frontend/postcss.config.js
Normal file
0
frontend/src/App.jsx
Normal file
0
frontend/src/App.jsx
Normal file
0
frontend/src/main.jsx
Normal file
0
frontend/src/main.jsx
Normal file
0
frontend/tailwind.config.js
Normal file
0
frontend/tailwind.config.js
Normal file
Reference in New Issue
Block a user