forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 1004 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
version: "2"
services:
db:
image: mysql:5.6
environment:
- MYSQL_DATABASE=plots
- MYSQL_USER=plots
- MYSQL_PASSWORD=plots
- MYSQL_RANDOM_ROOT_PASSWORD=true
volumes:
- ../mysql:/var/lib/mysql
# for persistence
- ../dump:/docker-entrypoint-initdb.d
# for importing a dump
# if you want to re-import simply put away ../mysql/*
solr:
image: solr:5.3
# ports:
# - "127.0.0.1:8982:8983"
volumes:
- solr:/opt/solr/server/solr/mycores
- ./config/solr:/opt/solr/server/solr/configsets/sunspot/conf
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- default
- /opt/solr/server/solr/configsets/sunspot
web:
build: .
command: /bin/bash -c "sleep 5 && rails s -p 4000 -b '0.0.0.0'"
environment:
- RAILS_ENV=${RAILS_ENV}
volumes:
- .:/app
ports:
- "127.0.0.1:4000:4000"
links:
- db
- solr
# restart: unless-stopped
volumes:
solr: