Add postgres container for development

This commit is contained in:
Luke Harding 2024-05-02 20:52:48 -04:00
parent b0cedf2866
commit 969791f127
3 changed files with 21 additions and 0 deletions

3
server/.env.example Normal file
View File

@ -0,0 +1,3 @@
DB_PASSWORD=
DB_USER=
DB_HOST=

5
server/README.md Normal file
View File

@ -0,0 +1,5 @@
# Personal Tracker Server
The server!
## Developer Setup

13
server/compose-dev.yaml Normal file
View File

@ -0,0 +1,13 @@
# Docker Compose for Development Machines
services:
postgres:
container_name: personal-tracker-dev-db
image: postgres:16
ports:
- 127.0.0.1:5432:5432
volumes:
- ./dev-db/postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: "${DB_USER}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"