forked from civio/onodo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (56 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
version: '3.2'
services:
postgres:
image: postgres:alpine
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- type: volume
source: db_data
target: /var/lib/postgresql/data
onodo:
build:
context: .
dockerfile: Dockerfile
args:
appdir: "/srv/onodo"
image: onodo:latest
volumes:
- type: bind
source: .
target: "/srv/onodo"
consistency: delegated
- type: volume
source: bundle
target: /usr/local/bundle
- type: volume
source: node_modules
target: "/srv/onodo/node_modules"
- type: volume
source: dist
target: "/srv/onodo/app/frontend/javascripts/dist"
ports:
- '3000:3000'
- '3080:3080'
environment:
- HOST
- MAILER_DOMAIN
- MAILER_USERNAME
- MAILER_PASSWORD
- MAILER_SENDER
- DEMO_DATA_ID
- NEW_RELIC_LICENSE
- HONEYBADGER_API_KEY
- ANALYTICS_ID
- RAILS_ENV=development
- SECRET_KEY_BASE=asecuretokenwouldnormallygohere
- DEVISE_SECRET_KEY=asecuretokenwouldnormallygohere
- DATABASE_URL=postgres://postgres@postgres:5432
command: bundle exec foreman start -f Procfile.dev
depends_on:
- postgres
volumes:
bundle:
node_modules:
dist:
db_data: