-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.36 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
version: '3.5'
services:
db:
image: postgres
ports:
- 127.0.0.1:55432:5432
volumes:
- ./tmp/docker/db/data:/var/lib/postgresql/data
backend:
build: ./backend
entrypoint: bin/docker-entrypoints/backend.sh
command: bin/rails s -b 0.0.0.0 -p ${PORT:-3009}
volumes:
- ./backend:/app
# - node_modules:/app/node_modules
- bundle:/usr/local/bundle/
ports:
- "${PORT:-3009}:${PORT:-3009}"
environment:
DATABASE_URL: postgresql://postgres@db/app_development
RAILS_ENV: development
ROLLBAR_ACCESS_TOKEN: "${ROLLBAR_ACCESS_TOKEN:-<PUT YOUR DEFAULT HERE>}"
# WEBPACKER_DEV_SERVER_HOST: webpack
# MAILER_URL: "smtp://[email protected]"
BUNDLE_PATH: /usr/local/bundle
depends_on:
- db
frontend:
build: ./frontend
entrypoint: bin/docker-entrypoints/frontend.sh
command: ionic serve
volumes:
- ./frontend:/app
- node_modules:/app/node_modules
ports:
- "${PORT:-8100}:${PORT:-8100}"
# environment:
# DATABASE_URL: postgresql://postgres@db/app_development
# RAILS_ENV: development
# WEBPACKER_DEV_SERVER_HOST: webpack
# MAILER_URL: "smtp://[email protected]"
# BUNDLE_PATH: /usr/local/bundle
depends_on:
- db
volumes:
bundle:
node_modules: