Skip to content

Commit

Permalink
Add database volume to dev docker-compose setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PurkkaKoodari committed Nov 17, 2022
1 parent 676eaa6 commit 3e77e72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ coverage/

.env

data/

src/react-app-env.d.ts

package-lock.json
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ services:
- POSTGRES_PASSWORD=$DB_PASSWORD
- POSTGRES_USER=$DB_USER
- POSTGRES_DB=$DB_DATABASE
volumes:
- ./data:/var/lib/postgresql/data

ilmomasiina-dev:
build:
Expand All @@ -32,8 +34,6 @@ services:
- DB_HOST=database
- NODE_ENV=development
- HOST=0.0.0.0
env_file:
- .env
volumes:
- type: bind
source: ./packages/ilmomasiina-models/src
Expand Down

0 comments on commit 3e77e72

Please sign in to comment.