Skip to content

Commit

Permalink
feat: add db to docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RimidalU committed May 2, 2024
1 parent 83652f2 commit b4719c9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: "3"

services:
db:
image: postgres
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=bookuser
- POSTGRES_PASSWORD=123
- POSTGRES_DB=bookswap
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data:

0 comments on commit b4719c9

Please sign in to comment.