forked from exercism/exercism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (43 loc) · 1.09 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
version: '2.1'
services:
app:
extends:
file: docker/common.yml
service: app
links:
- db
command: rerun -b --ignore='{**/*.{scss,css,js,coffee,erb},test/**}' 'puma -p 4567'
ports:
- "${EXTERNAL_PORT}:4567"
environment:
# These will ensure that certain development commands which
# use 'psql' will also include our custom database config.
#
# For more information, see:
# http://www.postgresql.org/docs/8.4/static/libpq-envars.html
PGHOST: db
PGUSER: exercism
PGPASSWORD: apples
RACK_ENV:
DEV_DATABASE_HOST: db
db:
image: postgres:9.4
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: exercism
POSTGRES_PASSWORD: apples
compass:
extends:
file: docker/common.yml
service: app
command: compass watch
lineman:
extends:
file: docker/common.yml
service: app
command: rerun -b --pattern '{**/*.coffee,**/{script,stats}.js}' -- lineman run
working_dir: /exercism/frontend
volumes:
pgdata:
driver: local