Skip to content

Commit 41deafc

Browse files
committed
fixing docker test container db links
1 parent a3a89cc commit 41deafc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docker-compose.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ services:
5757
environment:
5858
RAILS_ENV: test
5959
links:
60-
- postgres_test_5_2_ruby_2_6
60+
- "postgres_test_5_2_ruby_2_6:postgres_test"
6161
command: "bundle exec rspec spec/test"
6262
user: ${CURRENT_UID}
6363

@@ -68,7 +68,7 @@ services:
6868
environment:
6969
RAILS_ENV: test
7070
links:
71-
- postgres_test_6_0_ruby_2_6
71+
- "postgres_test_6_0_ruby_2_6:postgres_test"
7272
command: "bundle exec rspec spec/test"
7373
user: ${CURRENT_UID}
7474

@@ -79,7 +79,7 @@ services:
7979
environment:
8080
RAILS_ENV: test
8181
links:
82-
- postgres_test_6_1_ruby_2_7
82+
- "postgres_test_6_1_ruby_2_7:postgres_test"
8383
command: "bundle exec rspec spec/test"
8484
user: ${CURRENT_UID}
8585

@@ -90,7 +90,7 @@ services:
9090
environment:
9191
RAILS_ENV: test
9292
links:
93-
- postgres_test_6_1_ruby_3_0
93+
- "postgres_test_6_1_ruby_3_0:postgres_test"
9494
command: "bundle exec rspec spec/test"
9595
user: ${CURRENT_UID}
9696

@@ -116,8 +116,6 @@ services:
116116

117117
postgres_test:
118118
<<: *postgres_test_base
119-
volumes:
120-
- test-data-volume:/var/lib/postgresql/data
121119

122120
postgres_test_6_1_ruby_3_0:
123121
<<: *postgres_test_base

0 commit comments

Comments
 (0)