-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (38 loc) · 884 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (38 loc) · 884 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
40
41
42
version: "2"
services:
web:
build:
dockerfile: docker/ruby/Dockerfile
context: .
depends_on:
- postgres
- redis
volumes:
- .:/warmapp-api
environment:
- RAILS_ENV=development
- WARMAPP_DATABASE_HOST=postgres
- WARMAPP_REDIS_HOST=redis
- WARMAPP_FACEBOOK_APP_ID=$WARMAPP_FACEBOOK_APP_ID
- WARMAPP_FACEBOOK_APP_SECRET=$WARMAPP_FACEBOOK_APP_SECRET
ports:
- "3000:3000"
command: bin/rails server --binding=0.0.0.0 --port=3000
test:
build:
dockerfile: docker/ruby/Dockerfile
context: .
depends_on:
- postgres
- redis
volumes:
- .:/warmapp-api
environment:
- RAILS_ENV=test
- WARMAPP_DATABASE_HOST=postgres
- WARMAPP_REDIS_HOST=redis
command: bin/bundle exec rspec
postgres:
image: postgres
redis:
image: redis