-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.07 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
version: "3.8"
services:
api:
build: .
image: vlctechhub/api:latest
volumes:
- type: bind
source: .
target: /app
consistency: delegated
- type: volume
source: bundle
target: /usr/local/bundle
tmpfs:
- /app/tmp:exec
ports:
- "5000:5000"
networks:
default:
aliases:
- api.vlctechhub.local
environment:
- RACK_ENV=development
- PORT=5000
- MONGODB_URI=mongodb://mongo:27017/vlctechhub-dev
- TEST_MONGODB_URI=mongodb://mongo:27017/vlctechhub-test
- SENDGRID_PASSWORD
- SENDGRID_USERNAME
- EMAIL_FOR_PUBLICATION
- EMAIL_FOR_BROADCAST
- TWITTER_CONSUMER_KEY
- TWITTER_CONSUMER_SECRET
- TWITTER_ACCESS_TOKEN
- TWITTER_ACCESS_SECRET
- NEW_RELIC_LICENSE_KEY
depends_on:
- mongo
command:
["bash", "-c", "(bundle check || bundle install) && rake up"]
mongo:
image: mongo:5.0.14
volumes:
- type: volume
source: data
target: /data/db
volumes:
data:
bundle: