Add postgres container for development
This commit is contained in:
parent
b0cedf2866
commit
969791f127
3
server/.env.example
Normal file
3
server/.env.example
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
DB_PASSWORD=
|
||||||
|
DB_USER=
|
||||||
|
DB_HOST=
|
5
server/README.md
Normal file
5
server/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Personal Tracker Server
|
||||||
|
|
||||||
|
The server!
|
||||||
|
|
||||||
|
## Developer Setup
|
13
server/compose-dev.yaml
Normal file
13
server/compose-dev.yaml
Normal 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}"
|
Loading…
Reference in New Issue
Block a user