File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ services:
9
9
- " 3000:3000"
10
10
environment :
11
11
RAILS_ENV : development
12
+ links :
13
+ - postgres_dummy
12
14
volumes :
13
15
- ./:/app
14
16
- gem-volume:/usr/local/bundle
@@ -45,9 +47,20 @@ services:
45
47
- ./:/app
46
48
- gem-volume:/usr/local/bundle
47
49
- node-volume:/app/node_modules
48
- command : " bundle exec rspec spec/usage/components "
50
+ command : " bundle exec rspec spec/test "
49
51
user : ${CURRENT_UID}
50
52
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
+
51
64
postgres_test :
52
65
image : postgres
53
66
expose :
@@ -61,5 +74,6 @@ services:
61
74
62
75
volumes :
63
76
test-data-volume :
77
+ dummy-data-volume :
64
78
gem-volume :
65
79
node-volume :
Original file line number Diff line number Diff line change 13
13
14
14
development :
15
15
<< : *default
16
- database : development
16
+ host : postgres_dummy
17
+ database : dummy
17
18
18
19
staging :
19
20
<< : *default
You can’t perform that action at this time.
0 commit comments