-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
52 lines (52 loc) · 1.24 KB
/
docker-compose.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3'
services:
db:
image: postgres
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5432:5432"
spec:
build: .
entrypoint: bin/wait_for_it jsonapi_app_spec:3001 -t 30 --
command: bundle exec rspec
volumes:
- .:/simple_jsonapi_client
depends_on:
- jsonapi_app_spec
environment:
API_URL: jsonapi_app_spec
API_PORT: 3001
jsonapi_app_spec:
build: ./spec/jsonapi_app
entrypoint: bin/wait_for_it db:5432 -t 60 --
# volumes:
# - ./spec/jsonapi_app:/jsonapi_app
command: bundle exec rails s -p 3001 -b '0.0.0.0'
ports:
- "3001:3001"
environment:
API_PORT: 3001
depends_on:
- db
console:
build: .
entrypoint: bin/wait_for_it jsonapi_app_console:3002 -t 30 --
command: bin/development_start
volumes:
- .:/simple_jsonapi_client
depends_on:
- jsonapi_app_console
environment:
API_URL: jsonapi_app_console
API_PORT: 3002
jsonapi_app_console:
build: ./spec/jsonapi_app
entrypoint: bin/wait_for_it db:5432 -t 60 --
# volumes:
# - ./spec/jsonapi_app:/jsonapi_app
command: bundle exec rails s -p 3002 -b '0.0.0.0'
ports:
- "3002:3002"
depends_on:
- db