Skip to content

Commit 7eddddb

Browse files
committed
switched to postgres in dummy app
1 parent 76bd6a1 commit 7eddddb

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

docker-compose.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ services:
99
- "3000:3000"
1010
environment:
1111
RAILS_ENV: development
12+
links:
13+
- postgres_dummy
1214
volumes:
1315
- ./:/app
1416
- gem-volume:/usr/local/bundle
@@ -45,9 +47,20 @@ services:
4547
- ./:/app
4648
- gem-volume:/usr/local/bundle
4749
- node-volume:/app/node_modules
48-
command: "bundle exec rspec spec/usage/components"
50+
command: "bundle exec rspec spec/test"
4951
user: ${CURRENT_UID}
5052

53+
postgres_dummy:
54+
image: postgres
55+
expose:
56+
- 5432
57+
environment:
58+
POSTGRES_USER: postgres
59+
POSTGRES_PASSWORD: postgres
60+
POSTGRES_DB: dummy
61+
volumes:
62+
- dummy-data-volume:/var/lib/postgresql/data
63+
5164
postgres_test:
5265
image: postgres
5366
expose:
@@ -61,5 +74,6 @@ services:
6174

6275
volumes:
6376
test-data-volume:
77+
dummy-data-volume:
6478
gem-volume:
6579
node-volume:

spec/dummy/config/database.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ test:
1313

1414
development:
1515
<<: *default
16-
database: development
16+
host: postgres_dummy
17+
database: dummy
1718

1819
staging:
1920
<<: *default

0 commit comments

Comments
 (0)