-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 784 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 784 Bytes
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:
webpacker:
build: .
environment:
- NODE_ENV=development
- RAILS_ENV=development
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
command: ./bin/webpack-dev-server
volumes:
- .:/app
- gem_cache:/gems
- yarn_cache:/app/node_modules
ports:
- '3035:3035'
web:
build: .
command: ./bin/rails s -b 0.0.0.0
ports:
- 3000:3000
volumes:
- .:/app
- gem_cache:/gems
- yarn_cache:/app/node_modules
environment:
- WEBPACKER_DEV_SERVER_HOST=webpacker
depends_on:
- db
- webpacker
db:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: funapp-dev
volumes:
gem_cache:
yarn_cache: