forked from jerryseigle/nexmo-developer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 883 Bytes
/
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
version: '3'
services:
db:
image: postgres
web:
image: nexmodeveloper_app
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/app
- /app/node_modules
ports:
- "3000:3000"
depends_on:
- clean
- update
- db
environment:
- OAS_PATH=_open_api/api_specs/definitions
- DOCS_BASE_PATH=.
- POSTGRES_HOST=db
- POSTGRES_USERNAME=postgres
- RAILS_ENV=development
- RACK_ENV=development
clean:
image: nexmodeveloper_app
build: .
command: bash -c "rm -Rf public/packs && rm -f /app/tmp/pids/server.pid"
volumes:
- .:/app
update:
image: nexmodeveloper_app
build: .
command: bash -c "rake db:setup"
volumes:
- .:/app
depends_on:
- db
environment:
- POSTGRES_HOST=db
- POSTGRES_USERNAME=postgres