forked from JSONAPI-Resources/jsonapi-resources
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 866 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (35 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
services:
# Base service definition
test-base: &test-base
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
- bundle-cache:/usr/local/bundle
working_dir: /app
stdin_open: true
tty: true
# Rails 6.1.7
rails-6.1:
<<: *test-base
container_name: jsonapi-rails-6.1
environment:
- RAILS_VERSION=6.1.7
command: bash -c "bundle update && bundle exec rake test"
# Rails 7.0.4
rails-7.0:
<<: *test-base
container_name: jsonapi-rails-7.0
environment:
- RAILS_VERSION=7.0.4
command: bash -c "bundle update && bundle exec rake test"
# Interactive shell for debugging (defaults to Rails 6.1)
shell:
<<: *test-base
container_name: jsonapi-shell
environment:
- RAILS_VERSION=${RAILS_VERSION:-6.1.7}
command: /bin/bash
volumes:
bundle-cache: