Skip to content

Commit

Permalink
Add docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
richardscholtens committed Jan 19, 2024
1 parent dfa99a1 commit c58c32e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ docs/api
# JetBrains IDE files
/.idea/

.env
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
version: '3.8'
services:
db:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_DB=${POSTGRES_DBNAME}
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
volumes:
- db:/var/lib/postgresql/data
volumes:
db:
driver: local

0 comments on commit c58c32e

Please sign in to comment.