docker compose for postgres
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
/target
|
||||
/postgres-data
|
||||
|
||||
3
.ok
Normal file
3
.ok
Normal 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
15
docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user