-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
50 lines (46 loc) · 1 KB
/
docker-compose.dev.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
version: '2'
services:
db:
ports:
- "5437:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: development
admin-bundler-cache:
image: ruby:2.5.0-alpine
command: echo 'Data Container for Ruby 2.3.1 bundled gems'
volumes:
- /usr/local/bundle
admin:
build: admin
command: rerun -- rackup --port 3000 --host 0.0.0.0
volumes:
- ./admin:/app
volumes_from:
- admin-bundler-cache
links:
- front
ports:
- "3000:3000"
environment:
RACK_ENV: development
stdin_open: true
tty: true
front-bundler-cache:
image: ruby:2.5.0-alpine
command: echo 'Data Container for Ruby 2.3.1 bundled gems'
volumes:
- /usr/local/bundle
front:
build: front
command: rerun -- rackup --port 3001 --host 0.0.0.0
volumes:
- ./front:/app
volumes_from:
- front-bundler-cache
ports:
- "3001:3001"
environment:
RACK_ENV: development
stdin_open: true
tty: true