-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (59 loc) · 1.59 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
services:
app:
build:
context: .
dockerfile: Dockerfile.development
command: ["rails", "server", "-b", "0.0.0.0"]
entrypoint: /usr/src/app/entrypoints/entrypoint.sh
env_file:
- .env.development
environment:
- DATABASE_HOST=database
- WEBPACKER_DEV_SERVER_HOST=webpacker
volumes:
- ./:/usr/src/app
- gem_cache:/usr/local/bundle/gems
- node-modules:/usr/src/app/node_modules
ports:
- "3000:3000"
depends_on:
- database
- redis
stdin_open: true
tty: true
webpacker:
build:
context: .
dockerfile: Dockerfile.development
environment:
- NODE_ENV=development
- RAILS_ENV=development
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
command: ./bin/webpack-dev-server
volumes:
- ./:/usr/src/app
- gem_cache:/usr/local/bundle/gems
- node-modules:/usr/src/app/node_modules
ports:
- "3035:3035"
database:
image: postgres
env_file:
- .env.development
volumes:
- db_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
redis:
image: redis
command: redis-server
ports:
- "6379"
volumes:
- redis:/data
volumes:
gem_cache:
db_data:
redis:
node-modules: