forked from instedd/facility-public-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (41 loc) · 897 Bytes
/
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
version: '2'
services:
elasticsearch:
image: elasticsearch:2.4
volumes:
- elastic:/usr/share/elasticsearch/data
smtp:
image: 'djfarrelly/maildev:latest'
command: 'bin/maildev --web 3080 --smtp 1025 --incoming-user smtp --incoming-pass smtp'
ports:
- '3080:3080'
db:
image: postgres:9.5
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD:
volumes:
- db:/var/lib/postgresql/data
app:
build:
context: .
dockerfile: Dockerfile-dev
env_file: dev.env
tmpfs: /src/tmp
working_dir: /src
depends_on:
- db
- smtp
- elasticsearch
volumes:
- .:/src
- bundle:/usr/local/bundle
- elm-stuff:/src/elm-stuff
ports:
- "3000:3000"
command: /bin/sh -c './bin/update && bundle exec ./bin/rails s -b 0.0.0.0'
volumes:
db:
elastic:
bundle:
elm-stuff: