Skip to content

Commit

Permalink
add postgresql service to compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
zmariscal committed Sep 4, 2023
1 parent b1d0768 commit fb08e60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ services:
ports:
- "3306:3306"

postgresql:
image: postgres:latest
volumes:
- postgresql-data:/var/lib/postgresql/data
ports:
- "5432:5432"

app:
build:
context: .
Expand All @@ -19,7 +26,9 @@ services:
- .:/usr/src/app
depends_on:
- mysql
- postgresql
command: tail -f /dev/null

volumes:
mysql-data:
postgresql-data:
1 change: 1 addition & 0 deletions test/database.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ postgresql: &postgresql
<<: *common
username: postgres
adapter: postgresql
host: postgresql
min_messages: warning

postresql_makara:
Expand Down

0 comments on commit fb08e60

Please sign in to comment.