-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (49 loc) · 1.08 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
version: "3.9"
volumes:
psql-data:
redis-data:
app_gem_bundle:
node_modules:
services:
db:
image: postgres
volumes:
- ./tmp/db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
web: &web
build: .
command: rails s --binding 0.0.0.0
entrypoint: ./bin/dev-entrypoint.sh
volumes:
- .:/usr/src
- node_modules:/usr/src/node_modules
- app_gem_bundle:/usr/local/bundle
ports:
- "3000:3000"
environment:
RAILS_ENV: development
WEBPACKER_DEV_SERVER_HOST: webpacker
depends_on:
- db
- redis
- webpacker
webpacker:
<<: *web
command: ./bin/webpack-dev-server
volumes:
- .:/usr/src
- node_modules:/usr/src/node_modules
- app_gem_bundle:/usr/local/bundle
ports:
- "3035:3035"
environment:
NODE_ENV: development
RAILS_ENV: development
WEBPACKER_DEV_SERVER_HOST: 0.0.0.0
depends_on: []
redis:
image: redis:3.2-alpine
volumes:
- redis-data:/var/lib/redis
command: redis-server --appendonly yes