-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (81 loc) · 1.93 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3.4'
services:
app: &app
build:
context: .
dockerfile: ./.dockerdev/Dockerfile
args:
RUBY_VERSION: '2.6.3'
BUNDLER_VERSION: '2.0.2'
NODE_MAJOR: '11'
YARN_VERSION: '1.17.3'
image: quoting_tool-dev:0.1.0
tmpfs:
- /tmp
backend: &backend
<<: *app
stdin_open: true
tty: true
volumes:
- .:/app:cached
- rails_cache:/app/tmp/cache
- bundle:/bundle
- node_modules:/app/node_modules
- packs:/app/public/packs
environment:
- NODE_ENV=development
- RAILS_ENV=${RAILS_ENV:-development}
- REDIS_URL=redis://redis:6379/
- BOOTSNAP_CACHE_DIR=/bundle/bootsnap
- WEBPACKER_DEV_SERVER_HOST=webpacker
- WEB_CONCURRENCY=1
- HISTFILE=/app/log/.bash_history
- EDITOR=vi
depends_on:
- mongo
- redis
runner:
<<: *backend
command: /bin/bash
ports:
- '3002:3002'
angular:
<<: *backend
command: bash -c "cd clients/html && rm -rf node_modules && NG_CLI_ANALYTICS=false npm install -g @angular/cli && NG_CLI_ANALYTICS=false npm install && ng serve --host 0.0.0.0 --port 4200"
ports:
- '4200:4200'
rails:
<<: *backend
command: bash -c "rm -f tmp/pids/server.pid && bundle && bundle exec rails server -p 3000 -b '0.0.0.0'"
ports:
- '3000:3000'
mongo:
image: mongo:latest
ports:
- 27017:27017
redis:
image: redis:3.2-alpine
volumes:
- redis:/data
ports:
- 6379
webpacker:
<<: *app
command: ./bin/webpack-dev-server
ports:
- '3035:3035'
volumes:
- .:/app:cached
- bundle:/bundle
- node_modules:/app/node_modules
- packs:/app/public/packs
environment:
- NODE_ENV=${NODE_ENV:-development}
- RAILS_ENV=${RAILS_ENV:-development}
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
volumes:
redis:
bundle:
node_modules:
rails_cache:
packs: