-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·53 lines (48 loc) · 1.13 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
version: '2'
volumes:
postgres:
driver: local
node_modules:
driver: local
services:
# Database servers
postgres:
image: postgres:9.4
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres
volumes:
- postgres:/var/lib/postgresql/data
ports: ['5432:5432']
# redis:
# image: redis
# Web server, routing /api and / to server, client respectively
router:
build: ./router
links: [client, server]
ports: [80]
# Rails server
server:
# links: [postgres, redis]
links: [postgres]
build: ./server
volumes:
- ./server:/opt/bump/server
environment:
DATABASE_URL: 'postgresql://postgres:mysecretpassword@postgres/'
RAILS_ENV: development
# REDIS_URL: 'redis://redis/1'
# Ember server
client:
build: ./client
volumes:
- ./client:/opt/bump/client
# - /root/.cache/yarn
- /opt/bump/client/node_modules
- /opt/bump/client/bower_components
tmpfs:
- /opt/bump/client/tmp
environment:
EMBER_ENV: development
ports: ['57777:57777']