-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (41 loc) · 980 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
version: '3'
services:
database:
image: postgres
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
ports:
- '3004:5432'
application:
stdin_open: true
tty: true
build:
context: .
dockerfile: Dockerfile
args:
- RAILS_ENV=development
- NODE_ENV=development
- RAILS_MASTER_KEY=eaa5d29cae226065491ad49ac3bbcad4
ports:
- '3000:3000'
- '3009:3009'
volumes:
- ./:/app
depends_on:
- database
webpack_dev_server:
build:
context: .
dockerfile: Dockerfile
args:
- RAILS_ENV=development
- NODE_ENV=development
- RAILS_MASTER_KEY=eaa5d29cae226065491ad49ac3bbcad4
ports:
- '3035:3035'
command: /bin/bash -c "npm cache verify && yarn install && bundle install && rm -Rf /app/public/packs/ && bundle exec bin/webpack-dev-server"
volumes:
- ./:/app
depends_on:
- application