forked from ifmeorg/ifme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 869 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
42
version: "3"
services:
app:
build:
context: .
volumes:
- .:/app
- node_cache:/app/client/node_modules
- bundle_cache:/bundle
ports:
- "3000:3000"
depends_on:
- db
environment:
- BUNDLE_PATH=/bundle/vendor
- PSQL_USERNAME=postgres
- PSQL_PASSWORD=password
- PSQL_HOST=db
- RAILS_ENV=development
- NODE_ENV=development
- GITHUB_CLIENT_ID=
- GITHUB_CLIENT_SECRET=
- GOOGLE_CLIENT_ID=
- GOOGLE_CLIENT_SECRET=
tty: true
stdin_open: true
command: /bin/sh -c "bundle exec foreman start -f Procfile.dev"
db:
image: postgres:9.6-alpine
ports:
- "5432:5432"
volumes:
- postgres_volume:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
volumes:
bundle_cache:
postgres_volume:
node_cache: