-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
52 lines (48 loc) · 1.22 KB
/
docker-compose.dev.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
version: '2'
volumes:
postgres-data:
driver: local
gems:
driver: local
node_modules:
driver: local
services:
db:
image: postgres:9.5.3
ports:
- 5434:5432
volumes:
- postgres-data:/var/lib/postgresql/data
- ./tmp:/tmp
environment:
POSTGRES_PASSWORD: P4Ssw0rD!
web: &app
image: icalialabs/whales-frontend:development
build:
context: .
dockerfile: dev.Dockerfile
command: foreman start -f Procfile.hot
working_dir: /usr/src/app
entrypoint: /usr/src/app/development-entrypoint
volumes:
- .:/usr/src/app
- gems:/usr/local/bundle
- node_modules:/usr/src/app/client/node_modules
- /var/run/docker.sock:/var/run/docker.sock
stdin_open: true
tty: true
ports:
- 3000:3000
- 80:5000
- 3500:3500
links:
- db
environment: &app_environment
PATH: /usr/src/app/bin:/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
DATABASE_URL: postgres://postgres:P4Ssw0rD!@db:5432/whales_frontend_development
RAILS_ENV: development
RACK_ENV: development
CURRENT_DIRECTORY: ${PWD}
API_BASE_URI: whales.herokuapp.com
env_file:
- dev.env