docker compose for postgres

This commit is contained in:
2024-12-10 00:51:44 -08:00
parent 581d4bbffe
commit a9d659dc37
4 changed files with 19 additions and 0 deletions

0
.env Normal file
View File

1
.gitignore vendored
View File

@@ -1 +1,2 @@
/target /target
/postgres-data

3
.ok Normal file
View File

@@ -0,0 +1,3 @@
db.start: docker compose up -d
db.stop: docker compose down
db.reset: docker compose down -v --remove-orphans

15
docker-compose.yml Normal file
View File

@@ -0,0 +1,15 @@
services:
postgres:
image: postgres:latest
container_name: postgres-uplifting-api
ports:
- "5401:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- ./postgres-data:/var/lib/postgresql/data
volumes:
postgres-data: