-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
70 lines (62 loc) · 1.31 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "2"
services:
db:
image: postgres
expose:
- "5432"
volumes:
- postgres-data:/var/lib/postgresql
elasticsearch:
image: elasticsearch
expose:
- "9200"
proxy:
image: jwilder/nginx-proxy:latest
ports:
- 80:80
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
redis:
image: redis
ports:
- 6380:6379
volumes:
- redis-data:/var/lib/redis
web: &api_base
build: .
command: foreman s -f Procfile.dev
depends_on:
- db
- elasticsearch
- redis
environment: &api_environment
ELASTICSEARCH_URL: http://elasticsearch:9200
RACK_ENV: development
RAILS_ENV: development
REDIS_URL: redis://redis:6379
VIRTUAL_HOST: lvh.me,api.lvh.me
links:
- db
- elasticsearch
ports:
- 5001:5000
volumes:
- .:/code-corps-api
test:
<<: *api_base
command: guard start --no-bundler-warning --no-interactions
environment:
<<: *api_environment
RACK_ENV: test
RAILS_ENV: test
ports: []
apiary:
image: apiaryio/client
command: preview --server --host=0.0.0.0 --port=8080 --path=/code-corps-api/blueprint/api.apib
ports:
- 8081:8080
volumes:
- .:/code-corps-api
volumes:
postgres-data:
redis-data: